]> granicus.if.org Git - php/commitdiff
- MFH Fix handling of bork tests
authorMarcus Boerger <helly@php.net>
Fri, 23 Dec 2005 19:40:12 +0000 (19:40 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 23 Dec 2005 19:40:12 +0000 (19:40 +0000)
run-tests.php

index b0d6b9f8200845a5112f7a1a4b186ad5c3d84ef8..02235d248e9585b18c75c6e99a66cdeb3b3723ee 100755 (executable)
@@ -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']))) {