ICU: remove negative test that fails to fail.
authorJeff Davis
Fri, 21 Jul 2023 22:24:19 +0000 (15:24 -0700)
committerJeff Davis
Fri, 21 Jul 2023 22:24:19 +0000 (15:24 -0700)
On OpenBSD, setlocale() does not fail on an ICU-specific
locale. Remove the test.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20230702165615[email protected]

src/test/icu/t/010_database.pl

index 3beee2ff969e9d207bb02980fd383d993b68875a..0e9446cebef3d952aaf9977ce21864f8ee8efbec 100644 (file)
@@ -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();