[PATCH] Fix pg_isolation_regress to work outside its build directory - Mailing list pgsql-hackers

From Andres Freund
Subject [PATCH] Fix pg_isolation_regress to work outside its build directory
Date
Msg-id 20131001133544.GA3001247@alap2.anarazel.de
Whole thread Raw
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SSL renegotiation
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench - exclude pthread_create() from connection start timing