diff options
-rw-r--r-- | regress/lib.sh | 3 | ||||
-rw-r--r-- | regress/tests.sh | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/regress/lib.sh b/regress/lib.sh index 330d18d..d5e9609 100644 --- a/regress/lib.sh +++ b/regress/lib.sh @@ -194,11 +194,12 @@ count() { } quit() { - pid="$(cat gmid.pid || true)" + pid="$(cat gmid.pid || true)" 2>/dev/null if [ "$pid" != "" ]; then kill $pid || true wait || true fi + rm gmid.pid } onexit() { diff --git a/regress/tests.sh b/regress/tests.sh index cfc7c6a..0e07d19 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -523,7 +523,7 @@ test_ipv6_server() { } test_high_prefork() { - kill "$(cat gmid.pid)" 2>/dev/null || true + quit setup_simple_test 'prefork 12' @@ -531,7 +531,7 @@ test_high_prefork() { check_reply "20 text/gemini" "# hello world" || return 1 dont_check_server_alive=yes - kill "$(cat gmid.pid)" 2>/dev/null || true + quit } test_proxy_protocol_v1() { |