summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-09-11 19:42:59 +0000
committerMarcus Boerger <helly@php.net>2002-09-11 19:42:59 +0000
commit54e066b20bb058431d1682fe5624017d4e3772d2 (patch)
tree9e5ab5b2bcab9bfd7efbb310592097ea97193134 /run-tests.php
parentaaf920f9d5bd7148d12fbb6b3e411d31cef13b38 (diff)
downloadphp-git-54e066b20bb058431d1682fe5624017d4e3772d2.tar.gz
Unlink output files even if test is skipped.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php
index c6f10307e3..7a1f21f3db 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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 @@ TEST $file
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 @@ COMMAND $cmd
@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);