diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-04-04 13:34:23 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-04-04 13:34:23 -0400 |
commit | c67a86f7da90c30b81f91957023fb752f06f0598 (patch) | |
tree | bd92ce9f67ceb19263855f98734d0ed57653881e /src/bin/scripts/t/020_createdb.pl | |
parent | 368b7c601e3a7ce927602b5399e4b117d71bae31 (diff) | |
download | postgresql-c67a86f7da90c30b81f91957023fb752f06f0598.tar.gz postgresql-c67a86f7da90c30b81f91957023fb752f06f0598.zip |
Fix TAP tests to use only standard command-line argument ordering.
Some of the TAP tests were supposing that PG programs would accept switches
after non-switch arguments on their command lines. While GNU getopt_long()
does allow that, our own implementation does not, and it's nowhere
suggested in our documentation that such cases should work. Adjust the
tests to use only the documented syntax.
Back-patch to 9.4, since without this the TAP tests fail when run with
src/port's getopt_long() implementation.
Michael Paquier
Diffstat (limited to 'src/bin/scripts/t/020_createdb.pl')
-rw-r--r-- | src/bin/scripts/t/020_createdb.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/t/020_createdb.pl b/src/bin/scripts/t/020_createdb.pl index 40fbc9278d0..a44283c9458 100644 --- a/src/bin/scripts/t/020_createdb.pl +++ b/src/bin/scripts/t/020_createdb.pl @@ -15,7 +15,7 @@ issues_sql_like( qr/statement: CREATE DATABASE foobar1/, 'SQL CREATE DATABASE run'); issues_sql_like( - [ 'createdb', 'foobar2', '-l', 'C', '-E', 'LATIN1', '-T', 'template0' ], + [ 'createdb', '-l', 'C', '-E', 'LATIN1', '-T', 'template0', 'foobar2' ], qr/statement: CREATE DATABASE foobar2 ENCODING 'LATIN1'/, 'create database with encoding'); |