Fix one more TAP test to use standard command-line argument ordering.
authorNoah Misch
Sat, 2 May 2015 20:46:52 +0000 (16:46 -0400)
committerNoah Misch
Sat, 2 May 2015 20:46:52 +0000 (16:46 -0400)
Commit c67a86f7da90c30b81f91957023fb752f06f0598 caught most of these,
but this negative test escaped notice.  The test did pass, for the wrong
reason, under affected configurations.

Michael Paquier

src/bin/initdb/t/001_initdb.pl

index d12be842c1156e7996335fb0feed2eadf2e77602..eef2300009d03ef506a620b66169151e02e89024 100644 (file)
@@ -25,7 +25,7 @@ command_ok([ 'initdb', '-X', "$tempdir/pgxlog", "$tempdir/data" ],
 
 system_or_bail "rm -rf '$tempdir'/*";
 command_fails(
-   [ 'initdb', "$tempdir/data", '-X', 'pgxlog' ],
+   [ 'initdb', '-X', 'pgxlog', "$tempdir/data" ],
    'relative xlog directory not allowed');
 
 system_or_bail "rm -rf '$tempdir'/*";