Reduce risk of accidentally running temp-install regression tests against

Peter Eisentraut <peter_e@gmx.net>

Commit: 2939e20037acea4a1f8a6e9b6a66984a10d82f94
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2008-11-28T12:45:34Z
Releases: 8.4.0
Reduce risk of accidentally running temp-install regression tests against
a mismatching installation.  Pick a default port number calculated from the
version number, and try a few times with other numbers if that one doesn't
work.  Check if we can connect to the port before starting our own postmaster,
to detect some other server already running there.  To simplify the code,
drop --temp-port option and use --port for both temp-install and pre-installed
case.

Files

PathChange+/−
src/test/regress/GNUmakefile modified +3 −6
src/test/regress/pg_regress.c modified +45 −20