diff options
author | Stig Bakken <ssb@php.net> | 2000-12-15 02:57:11 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2000-12-15 02:57:11 +0000 |
commit | 73155d10c4bd9ee559a2d3495e7a2bfa3b8f453c (patch) | |
tree | 930d28219044bd3c137181a15dcc2c2a012e71c6 /run-tests.php | |
parent | b76900ed43e579b6f2c450144d0b237a09265239 (diff) | |
download | php-git-73155d10c4bd9ee559a2d3495e7a2bfa3b8f453c.tar.gz |
* run-tests.php: fixed a few bugs, including the POST/GET problem reported by
Stas
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/run-tests.php b/run-tests.php index 7256732489..45809ae450 100755 --- a/run-tests.php +++ b/run-tests.php @@ -46,11 +46,11 @@ exit; function usage() { - writeln("Usage: run-tests.php [-d] [-h] [dir|file...]"); + dowriteln("Usage: run-tests.php [-d] [-h] [dir|file...]"); } /* - * Please use write() and writeln() for all screen output. + * Please use dowrite() and dowriteln() for all screen output. * This makes it easier to convert to HTML output later. */ @@ -264,7 +264,8 @@ function run_tests_in_dir($dir = '.') $total++; } if ($oskipped + (isset($tests_in_dir[$dir])?$tests_in_dir[$dir]:0) == $skipped) { - dowriteln("[all $skipped test(s) skipped]"); + $skippednow = $skipped - $oskipped; + dowriteln("[all $skippednow test(s) skipped]"); } dowriteln(""); return true; @@ -407,10 +408,6 @@ function run_test($file) putenv("CONTENT_TYPE="); putenv("CONTENT_LENGTH="); } - putenv("a="); - putenv("b="); - putenv("c="); - putenv("d="); if (isset($fps["POST"])) { $cmd = "$php -q $tmpfile[FILE] < $tmpfile[POST]"; } else { @@ -418,13 +415,13 @@ function run_test($file) } $ofp = @fopen($tmpfile["OUTPUT"], "w"); if (!$ofp) { - writeln("Error: could not write to output file"); + dowriteln("Error: could not write to output file"); delete_tmpfiles(); return TEST_INTERNAL_ERROR; } $cp = popen($cmd, "r"); if (!$cp) { - writeln("Error: could not execute: $cmd"); + dowriteln("Error: could not execute: $cmd"); delete_tmpfiles(); return TEST_INTERNAL_ERROR; } |