diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-06-23 15:46:44 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2016-06-23 15:46:44 -0400 |
commit | 8dcbd61a45851f5492425acc1b19e4fd7081424b (patch) | |
tree | 3aa3930248bb9da217a3090687637d44fc4ea440 /tests/mod-fastcgi.t | |
parent | 72b133f5952f61eb8c695107cbb053d8a522494e (diff) | |
download | lighttpd-git-8dcbd61a45851f5492425acc1b19e4fd7081424b.tar.gz |
[cygwin] fix mod_proxy and mod_fastcgi ioctl use
cygwin does not support ioctl on sockets, returning EOPTNOTSUPP
(would be better if cygwin used Windows ioctlsocket() instead)
Windows uses signed (socklen_t), so add some casts to quiet warnings
Windows path handling is convoluted, so disable one tests in mod_fastcgi
since trailing spaces are removed from URL for _WIN32 and __CYGWIN__ in
response.c
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-x | tests/mod-fastcgi.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t index b3680d0d..4efce3fe 100755 --- a/tests/mod-fastcgi.t +++ b/tests/mod-fastcgi.t @@ -129,12 +129,16 @@ EOF $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ]; ok($tf->handle_http($t) == 0, 'PATHINFO'); + if ($^O ne "cygwin") { $t->{REQUEST} = ( <<EOF GET /cgi.php%20%20%20 HTTP/1.0 EOF ); $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ]; ok($tf->handle_http($t) == 0, 'No source retrieval'); + } else { + ok(1, 'No source retrieval; skipped on cygwin; see response.c'); + } $t->{REQUEST} = ( <<EOF GET /www/abc/def HTTP/1.0 |