postgresql/src/bin/scripts
Tom Lane 9ffe227837 Adjust createdb TAP tests to work on recent OpenBSD.
We found last February that the error-case tests added by commit
008cf0409 failed on OpenBSD, because that platform doesn't really
check locale names.  At the time it seemed that that was only an issue
for LC_CTYPE, but testing on a more recent version of OpenBSD shows
that it's now equally lax about LC_COLLATE.

Rather than dropping the LC_COLLATE test too, put back LC_CTYPE
(reverting c4b0edb07), and adjust these tests to accept the different
error message that we get if setlocale() doesn't reject a bogus locale
name.  The point of these tests is not really what the backend does
with the locale name, but to show that createdb quotes funny locale
names safely; so we're not losing test reliability this way.

Back-patch as appropriate.

Discussion: https://postgr.es/m/231373.1610058324@sss.pgh.pa.us
2021-01-07 20:36:09 -05:00
..
po Translation updates 2020-05-18 12:49:30 +02:00
t Adjust createdb TAP tests to work on recent OpenBSD. 2021-01-07 20:36:09 -05:00
.gitignore Remove createlang and droplang 2017-03-23 14:16:45 -04:00
clusterdb.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
createdb.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
createuser.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
dropdb.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
dropuser.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
nls.mk Add missing source files to nls.mk 2020-06-06 19:56:21 +02:00
pg_isready.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
reindexdb.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
scripts_parallel.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
scripts_parallel.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
vacuumdb.c Update copyright for 2021 2021-01-02 13:06:25 -05:00