From c67a86f7da90c30b81f91957023fb752f06f0598 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 4 Apr 2015 13:34:23 -0400 Subject: 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/scripts/t/010_clusterdb.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/scripts/t/010_clusterdb.pl') diff --git a/src/bin/scripts/t/010_clusterdb.pl b/src/bin/scripts/t/010_clusterdb.pl index cb9d04b0fe6..dc0d78a27d3 100644 --- a/src/bin/scripts/t/010_clusterdb.pl +++ b/src/bin/scripts/t/010_clusterdb.pl @@ -21,6 +21,6 @@ command_fails([ 'clusterdb', '-t', 'nonexistent', 'postgres' ], psql 'postgres', 'CREATE TABLE test1 (a int); CREATE INDEX test1x ON test1 (a); CLUSTER test1 USING test1x'; issues_sql_like( - [ 'clusterdb', 'postgres', '-t', 'test1' ], + [ 'clusterdb', '-t', 'test1', 'postgres' ], qr/statement: CLUSTER test1;/, 'cluster specific table'); -- cgit v1.2.3