From: Marcus Boerger Date: Fri, 23 Dec 2005 19:40:01 +0000 (+0000) Subject: - Fix handling of bork tests X-Git-Tag: RELEASE_1_0_4~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=34bd7e96fdf4e8e799d37ea3a13e54f0585d99da;p=php - Fix handling of bork tests --- diff --git a/run-tests.php b/run-tests.php index 1156e10e43..87b61f824c 100755 --- a/run-tests.php +++ b/run-tests.php @@ -990,8 +990,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' => '', @@ -1002,9 +1005,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']))) {