summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-12-23 19:40:12 +0000
committerMarcus Boerger <helly@php.net>2005-12-23 19:40:12 +0000
commitb1cb83f3c91f47093de6d35c10284bde20c62ab3 (patch)
tree68850e22c9678c087ba807590f07493a154a9d29 /run-tests.php
parent7f75b5fbf4d1a15b26eac304cc94d368969262c7 (diff)
downloadphp-git-b1cb83f3c91f47093de6d35c10284bde20c62ab3.tar.gz
- MFH Fix handling of bork tests
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php
index b0d6b9f820..02235d248e 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -955,8 +955,11 @@ TEST $file
}
fclose($fp);
+ $shortname = str_replace($cwd.'/', '', $file);
+ $tested_file = $shortname;
+
if ($borked) {
- show_result("BORK", $bork_info);
+ show_result("BORK", $bork_info, $tested_file);
$PHP_FAILED_TESTS['BORKED'][] = array (
'name' => $file,
'test_name' => '',
@@ -967,9 +970,7 @@ TEST $file
return 'BORKED';
}
- $shortname = str_replace($cwd.'/', '', $file);
$tested = trim($section_text['TEST']);
- $tested_file = $shortname;
/* 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']))) {