OSDN Git Service

Reduce risk of accidentally running temp-install regression tests against
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 28 Nov 2008 12:45:34 +0000 (12:45 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 28 Nov 2008 12:45:34 +0000 (12:45 +0000)
commit2939e20037acea4a1f8a6e9b6a66984a10d82f94
treeef99f69a543cf44f848e17e8b2cfda43998e62df
parenta93b3b98cd0ebcec0ec3bc880063581b67f50982
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.
src/test/regress/GNUmakefile
src/test/regress/pg_regress.c