cvs: php4 / run-tests.php

From: Date: Mon, 21 Oct 2002 08:52:45 +0000
Subject: cvs: php4 / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15092@lists.php.net to get a copy of this message
msopacua Mon Oct 21 04:52:45 2002 EDT Modified files: /php4 run-tests.php Log: Adds a 'reason' for skipping a test. # See modifications on ext/xml/tests/007.phpt for example Index: php4/run-tests.php diff -u php4/run-tests.php:1.74 php4/run-tests.php:1.75 --- php4/run-tests.php:1.74 Fri Oct 18 16:34:41 2002 +++ php4/run-tests.php Mon Oct 21 04:52:45 2002 @@ -433,8 +433,11 @@ save_text($tmp_skipif, $section_text['SKIPIF']); $output = $php $tmp_skipif; @unlink($tmp_skipif); - if (trim($output) == 'skip') { + if (ereg("^skip", trim($output))){ echo "SKIP $tested\n"; + $reason = (ereg("^skip\s*(.+)$", trim($output))) ? ereg_replace("^skip\s*(.+)$", "\\1", trim($output)) : FALSE; + if($reason) + print "\treason: $reason\n"; return 'SKIPPED'; } }

« previous php.cvs (#15092) next »