sniper Fri Jul 8 17:46:26 2005 EDT Modified files: /php-src run-tests.php Log: Sanitazione http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.219&r2=1.220&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.219 php-src/run-tests.php:1.220 --- php-src/run-tests.php:1.219 Thu Jul 7 09:58:02 2005 +++ php-src/run-tests.php Fri Jul 8 17:46:23 2005 @@ -23,25 +23,17 @@ +----------------------------------------------------------------------+ */ -/* - Require exact specification of PHP executable to test (no guessing!). - Die if any internal errors encountered in test script. - Regularized output for simpler post-processing of output. - Optionally output error lines indicating the failing test source and log - for direct jump with MSVC or Emacs. -*/ +/* $Id: run-tests.php,v 1.220 2005/07/08 21:46:23 sniper Exp $ */ /* * TODO: * - do not test PEAR components if base class and/or component class cannot be instanciated */ - /* 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 * not run without it. */ - if (!extension_loaded("pcre")) { echo <<<NO_PCRE_ERROR @@ -794,7 +786,7 @@ $tmp = realpath(dirname($file)); } - $diff_filename = $tmp . DIRECTORY_SEPARATOR . ereg_replace('\.phpt$','.diff', basename($file)); + $diff_filename = $tmp . DIRECTORY_SEPARATOR . ereg_replace('\.phpt$','.diff', basename($file)); $log_filename = $tmp . DIRECTORY_SEPARATOR . ereg_replace('\.phpt$','.log', basename($file)); $exp_filename = $tmp . DIRECTORY_SEPARATOR . ereg_replace('\.phpt$','.exp', basename($file)); $output_filename = $tmp . DIRECTORY_SEPARATOR . ereg_replace('\.phpt$','.out', basename($file)); @@ -804,7 +796,7 @@ $tmp_post = $tmp . DIRECTORY_SEPARATOR . uniqid('/phpt.'); if (is_array($IN_REDIRECT)) { - $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']) . " [$tmp_file]"; + $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']) . " [$shortname]"; $section_text['FILE'] = "# original source file: $shortname\n" . $section_text['FILE']; } @@ -906,7 +898,6 @@ } putenv("REDIR_TEST_DIR="); - // a redirected test never fails $IN_REDIRECT = false; return 'PASSED';
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php