]> granicus.if.org Git - pgbouncer/commit
test.sh: Sort out netcat zoo
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Jul 2018 11:56:30 +0000 (13:56 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 26 Jul 2018 11:56:30 +0000 (13:56 +0200)
commitd9bb905fa5939bf21969717a1b0dc5c7d53f844e
tree54a4bcfd7e5a05c88fe41a4945a36ad623f19b5a
parent1e7d86fa9ddca1c9265ee8263a44eeae5da440f3
test.sh: Sort out netcat zoo

The previous code distinguished between Linux and non-Linux netcat.
This didn't stand the test of time, since Linux distributions now ship
multiple variants of netcat and other operating systems also provide
multiple options.  So instead try to detect the variant from the help
output.  Also, the previous uses of the -q and -w options behaved
strangely with some versions and/or were inconsistent with the
documentation.  So abandon those options and just rely on the existing
killall call.

The test_server_connect_timeout_establish test should now pass again on
hopefully most configurations.
test/test.sh