summaryrefslogtreecommitdiff
path: root/src/bin/scripts/t/020_createdb.pl
diff options
context:
space:
mode:
authorMichael Paquier2020-02-27 12:58:37 +0000
committerMichael Paquier2020-02-27 12:58:37 +0000
commitc4b0edb07ed53063ea4c86cd7918ad6ea01d8979 (patch)
treedc54e602edb9ba1b9922aa21bff74e42f838efc3 /src/bin/scripts/t/020_createdb.pl
parent428a2609ef64b69d709418a50e192ff11a2643f1 (diff)
Remove TAP test for createdb --lc-ctype
OpenBSD falls back to "C" when using an incorrect input with setlocale() and LC_CTYPE, causing this test, introduced by 008cf04, to fail. This removes the culprit test to avoid the portability issue. Per report from Robert Haas, via buildfarm member curculio. Discussion: https://postgr.es/m/CA+TgmoZ6ddh3mHD9gU8DvNYoFmuJaYYn1+4AvZNp25vTdRwCAQ@mail.gmail.com Backpatch-through: 11
Diffstat (limited to 'src/bin/scripts/t/020_createdb.pl')
-rw-r--r--src/bin/scripts/t/020_createdb.pl10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl
index d94d4edd901..89de674265a 100644
--- a/src/bin/scripts/t/020_createdb.pl
+++ b/src/bin/scripts/t/020_createdb.pl
@@ -3,7 +3,7 @@ use warnings;
use PostgresNode;
use TestLib;
-use Test::More tests => 22;
+use Test::More tests => 19;
program_help_ok('createdb');
program_version_ok('createdb');
@@ -40,11 +40,3 @@ $node->command_checks_all(
qr/^createdb: error: database creation failed: ERROR: invalid locale name/s
],
'createdb with incorrect --lc-collate');
-$node->command_checks_all(
- [ 'createdb', '--lc-ctype', "foo'; SELECT '1", 'foobar2' ],
- 1,
- [qr/^$/],
- [
- qr/^createdb: error: database creation failed: ERROR: invalid locale name/s
- ],
- 'createdb with incorrect --lc-ctype');