summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Davis2023-07-21 22:24:19 +0000
committerJeff Davis2023-07-21 22:24:19 +0000
commit702d003269297042903c978176c0dd1ca77d5e60 (patch)
tree6b836caf778bd8cfb21ab0402f701eb7b3d3bd92
parent3c90dcd039149716454378bd270673f781b5c19f (diff)
ICU: remove negative test that fails to fail.
On OpenBSD, setlocale() does not fail on an ICU-specific locale. Remove the test. Reported-by: Andres Freund Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/test/icu/t/010_database.pl14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/icu/t/010_database.pl b/src/test/icu/t/010_database.pl
index 3beee2ff969..0e9446cebef 100644
--- a/src/test/icu/t/010_database.pl
+++ b/src/test/icu/t/010_database.pl
@@ -69,18 +69,4 @@ is( $node1->psql(
0,
"LOCALE works for ICU locales if LC_COLLATE and LC_CTYPE are specified");
-# Test that ICU-specific LOCALE without LC_COLLATE and LC_CTYPE must
-# be specified with ICU_LOCALE
-my ($ret, $stdout, $stderr) = $node1->psql(
- 'postgres',
- q{CREATE DATABASE dbicu3 LOCALE_PROVIDER icu LOCALE '@colStrength=primary'
- TEMPLATE template0 ENCODING UTF8});
-isnt($ret, 0,
- "ICU-specific locale must be specified with ICU_LOCALE: exit code not 0");
-like(
- $stderr,
- qr/ERROR: invalid LC_COLLATE locale name/,
- "ICU-specific locale must be specified with ICU_LOCALE: error message");
-
-
done_testing();