]> granicus.if.org Git - postgresql/commit
Fix TAP tests to use only standard command-line argument ordering.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Apr 2015 17:34:23 +0000 (13:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Apr 2015 17:34:23 +0000 (13:34 -0400)
commit406b2f0b4cbd1aa68334c2ed182e20e11cf47c62
tree09de7b2b4c4da81eabb8745afc075ae184b6bad2
parentc419321061420a6eb5851f2fdb0e0d5db24f5a4e
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
src/bin/initdb/t/001_initdb.pl
src/bin/scripts/t/010_clusterdb.pl
src/bin/scripts/t/020_createdb.pl
src/bin/scripts/t/090_reindexdb.pl