cvs: php4 / run-tests.php

From: Date: Wed, 11 Sep 2002 19:42:59 +0000
Subject: cvs: php4 / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14027@lists.php.net to get a copy of this message
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 <pbannister@php.net> | | Sander Roobol <sander@php.net> | + | Marcus Boerger <helly@php.net> | | (based on version by: Stig Bakken <ssb@fast.no>) | | (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);

« previous php.cvs (#14027) next »