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.
*/
$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;
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 {
}
$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;
}