diff options
author | Robert Haas | 2013-11-08 19:40:41 +0000 |
---|---|---|
committer | Robert Haas | 2013-11-08 19:40:41 +0000 |
commit | 9b4d52f2095be96ca238ce41f6963ec56376491f (patch) | |
tree | 28cb77b7b68214cca1dfc426ccf28ec9496a83fb /src/test/isolation/isolationtester.c | |
parent | 07cacba983ef79be4a84fcd0e0ca3b5fcb85dd65 (diff) |
Fix pg_isolation_regress to work outside its build directory.
This makes it possible to, for example, use the isolation tester to
test a contrib module.
Andres Freund
Diffstat (limited to 'src/test/isolation/isolationtester.c')
-rw-r--r-- | src/test/isolation/isolationtester.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 9679e6a6e6b..6d0c188217c 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -85,13 +85,16 @@ main(int argc, char **argv) PQExpBufferData wait_query; int opt; - while ((opt = getopt(argc, argv, "n")) != -1) + while ((opt = getopt(argc, argv, "nV")) != -1) { switch (opt) { case 'n': dry_run = true; break; + case 'V': + puts("isolationtester (PostgreSQL) " PG_VERSION); + exit(0); default: fprintf(stderr, "Usage: isolationtester [-n] [CONNINFO]\n"); return EXIT_FAILURE; |