Changeset 513
- Timestamp:
- 08/08/2005 10:30:02 AM (3 years ago)
- Location:
- trunk/tests
- Files:
-
- 1 added
- 1 modified
-
docroot/www/pathinfo.php (added)
-
mod-fastcgi.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/mod-fastcgi.t
r168 r513 3 3 use strict; 4 4 use IO::Socket; 5 use Test::More tests => 4 0;5 use Test::More tests => 41; 6 6 7 7 my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '..'); … … 18 18 sub pidof { 19 19 my $prog = $_[0]; 20 21 open F, "ps ax | grep $prog | grep -v grep | awk '{ print \$1 }'|" or 22 open F, "ps -ef | grep $prog | grep -v grep | awk '{ print \$2 }'|" or 20 my $pid; 21 22 open F, "ps ax | grep $prog | grep -v grep | awk '{ print \$1 }'|" and $pid = <F> or 23 close F and 24 open F, "ps -ef | grep $prog | grep -v grep | awk '{ print \$2 }'|" and $pid = <F> or 23 25 return -1; 24 26 25 my $pid = <F>;26 27 close F; 27 28 … … 202 203 203 204 SKIP: { 204 skip "no PHP running on port 1026", 2 4if pidof("php") == -1;205 skip "no PHP running on port 1026", 25 if pidof("php") == -1; 205 206 206 207 ok(start_proc == 0, "Starting lighttpd") or die(); … … 253 254 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/phpself.php' } ); 254 255 ok(handle_http == 0, '$_SERVER["PHP_SELF"]'); 256 257 @request = ( <<EOF 258 GET /pathinfo.php/foo HTTP/1.0 259 Host: www.example.org 260 EOF 261 ); 262 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => '/foo' } ); 263 ok(handle_http == 0, '$_SERVER["PATH_INFO"]'); 255 264 256 265 @request = ( <<EOF

