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
This commit is contained in:
parent
3c90dcd039
commit
702d003269
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user