helly Sat Mar 11 18:13:13 2006 UTC Modified files: /php-src run-tests.php Log: - Fix writing faillog with redirected tests http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.283&r2=1.284&diff_format=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.283 php-src/run-tests.php:1.284 --- php-src/run-tests.php:1.283 Sat Mar 11 17:57:40 2006 +++ php-src/run-tests.php Sat Mar 11 18:13:13 2006 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.283 2006/03/11 17:57:40 helly Exp $ */ +/* $Id: run-tests.php,v 1.284 2006/03/11 18:13:13 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.283 $'."\n"; + echo '$Revision: 1.284 $'."\n"; exit(1); default: echo "Illegal switch specified!\n"; @@ -885,10 +885,21 @@ } foreach($test_files as $name) { - if ($redir_tested) { + if (is_array($name)) + { + $index = "# $name[1]: $name[0]"; + if ($redir_tested) + { + $name = $name[0]; + } + } + else if ($redir_tested) + { $index = "# $redir_tested: $name"; - } else { - $index = is_array($name) ? "# $name[1]: $name[0]" : $name; + } + else + { + $index = $name; } $unicode_semantics = $unicode_and_native ? 0 : ($unicode_testing ? 1 : 0); for(; $unicode_semantics < ($unicode_testing ? 2 : 1); $unicode_semantics++) @@ -1217,7 +1228,9 @@ } else { $GLOBALS['test_files'] = $test_files; find_files($IN_REDIRECT['TESTS']); - $test_files = $GLOBALS['test_files']; + foreach($GLOBALS['test_files'] as $f) { + $test_files[] = array($f, $file); + } } $test_cnt += (count($test_files) - 1) * ($unicode_and_native ? 2 : 1); $test_idx--;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php