helly           Fri Apr 14 13:48:11 2006 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  - Prefix summaries with either U or N
  
http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.284&r2=1.285&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.284 php-src/run-tests.php:1.285
--- php-src/run-tests.php:1.284 Sat Mar 11 18:13:13 2006
+++ php-src/run-tests.php       Fri Apr 14 13:48:11 2006
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.284 2006/03/11 18:13:13 helly Exp $ */
+/* $Id: run-tests.php,v 1.285 2006/04/14 13:48:11 helly Exp $ */
 
 /* Sanity check to ensure that pcre extension needed by this script is 
available.
  * In the event it is not, print a nice error message indicating that this 
script will
@@ -390,7 +390,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.284 $'."\n";
+                                       echo '$Revision: 1.285 $'."\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch specified!\n";
@@ -677,7 +677,7 @@
 
                if ($sum_results['FAILED']) {
                        foreach ($PHP_FAILED_TESTS['FAILED'] as $test_info) {
-                               $failed_tests_data .= $sep . $test_info['name'] 
. $test_info['info'];
+                               $failed_tests_data .= $sep . 
($test_info['unicode']?'U:':'N:') . $test_info['name'] . $test_info['info'];
                                $failed_tests_data .= $sep . 
file_get_contents(realpath($test_info['output']));
                                $failed_tests_data .= $sep . 
file_get_contents(realpath($test_info['diff']));
                                $failed_tests_data .= $sep . "\n\n";
@@ -1033,6 +1033,7 @@
                                                                'output' => '',
                                                                'diff'   => '',
                                                                'info'   => 
"$bork_info [$file]",
+                                                               'unicode'=> 
$unicode_semantics,
                );
                return 'BORKED';
        }
@@ -1261,6 +1262,7 @@
                                                                'output' => '',
                                                                'diff'   => '',
                                                                'info'   => 
"$bork_info [$file]",
+                                                               'unicode'=> 
$unicode_semantics,
                );
                //$test_cnt -= 1;  // Only if is_array($org_file) ?
                //$test_idx--;
@@ -1493,7 +1495,8 @@
                                                'test_name' => 
(is_array($IN_REDIRECT) ? $IN_REDIRECT['via'] : '') . $tested . " 
[$tested_file]",
                                                'output' => $output_filename,
                                                'diff'   => $diff_filename,
-                                               'info'   => $info
+                                               'info'   => $info,
+                                               'unicode'=> $unicode_semantics,
                                                );
 
        if (isset($old_php)) {
@@ -1713,8 +1716,8 @@
 BORKED TEST SUMMARY
 ---------------------------------------------------------------------
 ";
-               foreach ($PHP_FAILED_TESTS['BORKED'] as $failed_test_data) {
-                       $failed_test_summary .= $failed_test_data['info'] . 
"\n";
+               foreach ($PHP_FAILED_TESTS['BORKED'] as $test_data) {
+                       $failed_test_summary .= 
($test_data['unicode']?'U:':'N:') . $test_data['info'] . "\n";
                }
                $failed_test_summary .=  
"=====================================================================\n";
        }
@@ -1725,8 +1728,8 @@
 FAILED TEST SUMMARY
 ---------------------------------------------------------------------
 ";
-               foreach ($PHP_FAILED_TESTS['FAILED'] as $failed_test_data) {
-                       $failed_test_summary .= $failed_test_data['test_name'] 
. $failed_test_data['info'] . "\n";
+               foreach ($PHP_FAILED_TESTS['FAILED'] as $test_data) {
+                       $failed_test_summary .= 
($test_data['unicode']?'U:':'N:') . $test_data['test_name'] . 
$test_data['info'] . "\n";
                }
                $failed_test_summary .=  
"=====================================================================\n";
        }
@@ -1737,8 +1740,8 @@
 LEAKED TEST SUMMARY
 ---------------------------------------------------------------------
 ";
-               foreach ($PHP_FAILED_TESTS['LEAKED'] as $failed_test_data) {
-                       $failed_test_summary .= $failed_test_data['test_name'] 
. $failed_test_data['info'] . "\n";
+               foreach ($PHP_FAILED_TESTS['LEAKED'] as $test_data) {
+                       $failed_test_summary .= 
($test_data['unicode']?'U:':'N:') . $test_data['test_name'] . 
$test_data['info'] . "\n";
                }
                $failed_test_summary .=  
"=====================================================================\n";
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to