diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-02-01 03:36:36 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-02-04 03:18:16 -0500 |
commit | 5aba760f7b6db0279d8f3da1d8f92177dee3b832 (patch) | |
tree | 994eb5e4ef9fc6a704e1c87018f2fdac9f28535b /tests | |
parent | 32f0e26d6cf5162d0432e7471fde5fa8b0d92c9e (diff) | |
download | lighttpd-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')
-rwxr-xr-x | tests/request.t | 2 |
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 |