Changeset 51
- Timestamp:
- 02/28/2005 09:32:05 AM (4 years ago)
- Files:
-
- 1 modified
-
trunk/tests/run-tests.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/run-tests.pl
r42 r51 3 3 use strict; 4 4 use IO::Socket; 5 use Test::More tests => 8 7;5 use Test::More tests => 89; 6 6 7 7 … … 17 17 my $prog = $_[0]; 18 18 19 system("ps ax | grep $prog | awk '{ print \$1 }' > $pidoffile")or20 system("ps -ef | grep $prog | awk '{ print \$1 }' > $pidoffile")or19 open F, "ps ax | grep $prog | awk '{ print \$1 }'|" or 20 open F, "ps -ef | grep $prog | awk '{ print \$2 }'|" or 21 21 return -1; 22 22 23 open F, $pidfile or return -1;24 23 my $pid = <F>; 25 24 close F; … … 827 826 828 827 SKIP: { 829 skip "no PHP running on port 1026", 1 1if pidof("php") == -1;828 skip "no PHP running on port 1026", 13 if pidof("php") == -1; 830 829 831 830 @request = ( <<EOF … … 906 905 EOF 907 906 ); 908 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => ' zzz.example.org' } );907 @response = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'www.example.org' } ); 909 908 ok(handle_http == 0, 'SERVER_NAME'); 910 909

