Fix TAP tests to use only standard command-line argument ordering.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 406b2f0b4cbd1aa68334c2ed182e20e11cf47c62
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-04-04T17:34:23Z
Releases: 9.4.2
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

Files