[PATCH] Fix pg_isolation_regress to work outside its build directory

Started by Andres Freundover 12 years ago1 messageshackers
Jump to latest
#1Andres Freund
andres@anarazel.de

Hi,

isolation_main.c executes isolationtester with:

snprintf(psql_cmd + offset, sizeof(psql_cmd) - offset,
SYSTEMQUOTE "\"./isolationtester\" \"dbname=%s\" < \"%s\" > \"%s\"

That obviously fails if pg_isolation_tester is invoked when CWD is not
its build directory. That's rather annoying if one wants to write an
isolation test for a contrib module or similar.
The attached patch fixes that using port.h's find_other_exec().

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Attachments:

0001-Fix-pg_isolation_regress-to-work-outside-its-build-d.patchtext/x-patch; charset=us-asciiDownload+21-7