postgres.git / summary / log / commit / refs

commit    8e076f4f9ae3c19c8142e88ca1b6b1d25899dc64
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Thu Feb 27 12:58:50 2020 +0000
First released in: 13.0, 11.8, 12.3
Reverted by: c67fea09da25 (in 11.11), 29556bf1be91 (in 12.6), 5ba046948ed4 (in 13.2), 9ffe2278372d (in 14.0)

    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


src/bin/scripts/t/020_createdb.pl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl index 8df32dba91b..05069bcdbc3 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: 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: database creation failed: ERROR: invalid locale name/s - ], - 'createdb with incorrect --lc-ctype'); [parent: 8f9aba1874ec]