helly Wed Sep 11 15:42:59 2002 EDT Modified files: /php4 run-tests.php Log: Unlink output files even if test is skipped. Index: php4/run-tests.php diff -u php4/run-tests.php:1.54 php4/run-tests.php:1.55 --- php4/run-tests.php:1.54 Mon Aug 26 19:26:46 2002 +++ php4/run-tests.php Wed Sep 11 15:42:59 2002 @@ -15,6 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Preston L. Bannister <[EMAIL PROTECTED]> | | Sander Roobol <[EMAIL PROTECTED]> | + | Marcus Boerger <[EMAIL PROTECTED]> | | (based on version by: Stig Bakken <[EMAIL PROTECTED]>) | | (based on the PHP 3 test framework by Rasmus Lerdorf) | +----------------------------------------------------------------------+ @@ -324,6 +325,12 @@ putenv("CONTENT_TYPE="); putenv("CONTENT_LENGTH="); + // unlink old test results + @unlink(ereg_replace('\.phpt$','.diff',$file)); + @unlink(ereg_replace('\.phpt$','.log',$file)); + @unlink(ereg_replace('\.phpt$','.exp',$file)); + @unlink(ereg_replace('\.phpt$','.out',$file)); + // Check if test should be skipped. if (array_key_exists('SKIPIF', $section_text)) { if (trim($section_text['SKIPIF'])) { @@ -397,12 +404,6 @@ @unlink($tmp_post); @unlink($tmp_file); - // unlink old test results - @unlink(ereg_replace('\.phpt$','.diff',$file)); - @unlink(ereg_replace('\.phpt$','.log',$file)); - @unlink(ereg_replace('\.phpt$','.exp',$file)); - @unlink(ereg_replace('\.phpt$','.out',$file)); - // Does the output match what is expected? $output = trim($out);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php