summaryrefslogtreecommitdiff
path: root/tests/request.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-02-01 03:36:36 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-02-04 03:18:16 -0500
commit5aba760f7b6db0279d8f3da1d8f92177dee3b832 (patch)
tree994eb5e4ef9fc6a704e1c87018f2fdac9f28535b /tests/request.t
parent32f0e26d6cf5162d0432e7471fde5fa8b0d92c9e (diff)
downloadlighttpd-git-5aba760f7b6db0279d8f3da1d8f92177dee3b832.tar.gz
[tests] quickly exit tests/request.t if GET / fail
quickly exit tests/request.t if "GET /" fails, without running further tests. Also, attempt to shutdown test server so that it is not left running on platforms which use different signals (e.g. Windows)
Diffstat (limited to 'tests/request.t')
-rwxr-xr-xtests/request.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/request.t b/tests/request.t
index 61979501..7347f0fa 100755
--- a/tests/request.t
+++ b/tests/request.t
@@ -23,7 +23,7 @@ GET / HTTP/1.0
EOF
);
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
-ok($tf->handle_http($t) == 0, 'Valid HTTP/1.0 Request') or die();
+ok($tf->handle_http($t) == 0, 'Valid HTTP/1.0 Request') or ($tf->stop_proc, die());
$t->{REQUEST} = ( <<EOF
OPTIONS * HTTP/1.0