Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 702d003

Browse files
committed
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/20230702165615.k6waysygrefdeiiw@awork3.anarazel.de
1 parent 3c90dcd commit 702d003

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,4 @@
6969
0,
7070
"LOCALE works for ICU locales if LC_COLLATE and LC_CTYPE are specified");
7171

72-
# Test that ICU-specific LOCALE without LC_COLLATE and LC_CTYPE must
73-
# be specified with ICU_LOCALE
74-
my ($ret, $stdout, $stderr) = $node1->psql(
75-
'postgres',
76-
q{CREATE DATABASE dbicu3 LOCALE_PROVIDER icu LOCALE '@colStrength=primary'
77-
TEMPLATE template0 ENCODING UTF8});
78-
isnt($ret, 0,
79-
"ICU-specific locale must be specified with ICU_LOCALE: exit code not 0");
80-
like(
81-
$stderr,
82-
qr/ERROR: invalid LC_COLLATE locale name/,
83-
"ICU-specific locale must be specified with ICU_LOCALE: error message");
84-
85-
8672
done_testing();

0 commit comments

Comments
 (0)