summaryrefslogtreecommitdiff
path: root/tests/mod-fastcgi.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-09-09 04:55:26 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-09 04:55:26 -0400
commit9a37ba54d1bf2bf93fa14dbc6a9d092bd1f5e70c (patch)
tree794ded24045c0a1667eb923c6745bbda95aba2cc /tests/mod-fastcgi.t
parentf99cb7d7ab98117fb757430ea9651d4015f180b2 (diff)
downloadlighttpd-git-9a37ba54d1bf2bf93fa14dbc6a9d092bd1f5e70c.tar.gz
[tests] skip time-sensitive test during CI testing
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-xtests/mod-fastcgi.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t
index c904d860..25016e60 100755
--- a/tests/mod-fastcgi.t
+++ b/tests/mod-fastcgi.t
@@ -189,11 +189,23 @@ EOF
ok($tf->handle_http($t) == 0, 'SCRIPT_NAME (wsgi)');
+ # skip timing-sensitive test during CI testing, but run for user 'gps'
+ my $user = `id -un`;
+ chomp($user) if $user;
+ if (($user || "") eq "gps") {
$t->{REQUEST} = ( <<EOF
GET /index.fcgi?die-at-end HTTP/1.0
Host: www.example.org
EOF
);
+ }
+ else {
+ $t->{REQUEST} = ( <<EOF
+GET /index.fcgi?crlf HTTP/1.0
+Host: www.example.org
+EOF
+ );
+ }
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ];
ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart');