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'; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php