From: Marko Kreen Date: Tue, 8 Jan 2008 07:57:22 +0000 (+0000) Subject: return correct value X-Git-Tag: pgbouncer_1_2_rc2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=734b5d15720f2af99bb2d87311efac6ad24d1b06;p=pgbouncer return correct value --- diff --git a/test/test.sh b/test/test.sh index 64443c6..d6ac7ed 100755 --- a/test/test.sh +++ b/test/test.sh @@ -15,7 +15,7 @@ BOUNCER_LOG=test.log BOUNCER_INI=test.ini BOUNCER_PID=test.pid BOUNCER_PORT=`sed -n '/^listen_port/s/listen_port.*=[^0-9]*//p' $BOUNCER_INI` -BOUNCER_EXE=./pgbouncer +BOUNCER_EXE="./pgbouncer" LOGDIR=log NC_PORT=6668 @@ -184,9 +184,10 @@ test_server_connect_timeout_establish() { psql -c "select now()" p2 # client will always see query_timeout, need to grep for connect timeout grep "closing because: connect timeout" $BOUNCER_LOG + rc=$? # didnt seem to die otherwise killall nc - return $? + return $rc } # server_connect_timeout - block with iptables