summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-12-30 15:05:17 +0000
committerMarcus Boerger <helly@php.net>2005-12-30 15:05:17 +0000
commitc2c7bc6a10d180eb45f286fe2bf2df566f9eb2ce (patch)
treea2acd74de0a9178745dbafd102c8485e4d39fe06
parent2a140b8f4020b516921e71d5cfb29c78b265d1ea (diff)
downloadphp-git-c2c7bc6a10d180eb45f286fe2bf2df566f9eb2ce.tar.gz
- WS
-rwxr-xr-xrun-tests.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/run-tests.php b/run-tests.php
index 1c12c8cde1..3712a836ad 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -984,16 +984,16 @@ TEST $file
$tested = trim($section_text['TEST']);
- /* For GET/POST tests, check if cgi sapi is available and if it is, use it. */
- if ((!empty($section_text['GET']) || !empty($section_text['POST']))) {
- if (file_exists("./sapi/cgi/php")) {
- $old_php = $php;
- $php = realpath("./sapi/cgi/php") . ' -C ';
- } else {
+ /* For GET/POST tests, check if cgi sapi is available and if it is, use it. */
+ if ((!empty($section_text['GET']) || !empty($section_text['POST']))) {
+ if (file_exists("./sapi/cgi/php")) {
+ $old_php = $php;
+ $php = realpath("./sapi/cgi/php") . ' -C ';
+ } else {
show_result("SKIP", $tested, $tested_file, "reason: CGI not available");
- return 'SKIPPED';
- }
- }
+ return 'SKIPPED';
+ }
+ }
show_test($test_idx, $shortname);
@@ -1322,7 +1322,7 @@ COMMAND $cmd
$php = $old_php;
}
if (!$leaked) {
- show_result("PASS", $tested, $tested_file, '', $temp_filenames);
+ show_result("PASS", $tested, $tested_file, '', $temp_filenames);
return 'PASSED';
}
}