]> granicus.if.org Git - php/commitdiff
- Always show unicode_semantics state (required for our gcov stuff)
authorMarcus Boerger <helly@php.net>
Sun, 13 Aug 2006 15:22:18 +0000 (15:22 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 13 Aug 2006 15:22:18 +0000 (15:22 +0000)
run-tests.php

index 6d9f219c875e57ffd2bf5d3c7ecb67d4d6de98c7..34dc8b9f867fcd6aee71f1f6db899dc083f46b27 100755 (executable)
@@ -1072,7 +1072,7 @@ TEST $file
                }
        }
 
-       show_test($test_idx, $shortname);
+       show_test($test_idx, $shortname, $unicode_semantics);
 
        if (is_array($IN_REDIRECT)) {
                $temp_dir = $test_dir = $IN_REDIRECT['dir'];
@@ -1913,11 +1913,12 @@ function show_redirect_ends($tests, $tested, $tested_file)
        echo "---> $tests ($tested [$tested_file]) done\n";
 }
 
-function show_test($test_idx, $shortname)
+function show_test($test_idx, $shortname, $unicode_semantics)
 {
        global $test_cnt;
 
-       echo "TEST $test_idx/$test_cnt [$shortname]\r";
+       $kind = $unicode_semantics ? ':U' : ':N';
+       echo "TEST$kind $test_idx/$test_cnt [$shortname]\r";
        flush();
 }
 
@@ -1925,7 +1926,7 @@ function show_result($result, $tested, $tested_file, $unicode_semantics, $extra
 {
        global $html_output, $html_file, $temp_target, $temp_urlbase, $unicode_and_native;
 
-       $kind = $unicode_and_native ? ($unicode_semantics ? ':U' : ':N') : '';
+       $kind = $unicode_semantics ? ':U' : ':N';
 
        echo "$result$kind $tested [$tested_file] $extra\n";