summaryrefslogtreecommitdiff
path: root/src/bin/scripts/t/090_reindexdb.pl
diff options
context:
space:
mode:
authorTom Lane2015-04-04 17:34:23 +0000
committerTom Lane2015-04-04 17:34:23 +0000
commitc67a86f7da90c30b81f91957023fb752f06f0598 (patch)
treebd92ce9f67ceb19263855f98734d0ed57653881e /src/bin/scripts/t/090_reindexdb.pl
parent368b7c601e3a7ce927602b5399e4b117d71bae31 (diff)
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/090_reindexdb.pl')
-rw-r--r--src/bin/scripts/t/090_reindexdb.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/scripts/t/090_reindexdb.pl b/src/bin/scripts/t/090_reindexdb.pl
index d24088ebdbc..d5bce4334e8 100644
--- a/src/bin/scripts/t/090_reindexdb.pl
+++ b/src/bin/scripts/t/090_reindexdb.pl
@@ -20,18 +20,18 @@ issues_sql_like(
psql 'postgres',
'CREATE TABLE test1 (a int); CREATE INDEX test1x ON test1 (a);';
issues_sql_like(
- [ 'reindexdb', 'postgres', '-t', 'test1' ],
+ [ 'reindexdb', '-t', 'test1', 'postgres' ],
qr/statement: REINDEX TABLE test1;/,
'reindex specific table');
issues_sql_like(
- [ 'reindexdb', 'postgres', '-i', 'test1x' ],
+ [ 'reindexdb', '-i', 'test1x', 'postgres' ],
qr/statement: REINDEX INDEX test1x;/,
'reindex specific index');
issues_sql_like(
- [ 'reindexdb', 'postgres', '-S', 'pg_catalog' ],
+ [ 'reindexdb', '-S', 'pg_catalog', 'postgres' ],
qr/statement: REINDEX SCHEMA pg_catalog;/,
'reindex specific schema');
issues_sql_like(
- [ 'reindexdb', 'postgres', '-s' ],
+ [ 'reindexdb', '-s', 'postgres' ],
qr/statement: REINDEX SYSTEM postgres;/,
'reindex system tables');