summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-15 15:57:00 +0000
committerMarcus Boerger <helly@php.net>2002-11-15 15:57:00 +0000
commit0f66b352e99daaf01c9d53f910d0a2c1eda5fbae (patch)
tree610756e2c7709140a6d828b8fe31fe452a61a9f7
parent483502fe10c20f341de8cb4a738af9ed519f2d33 (diff)
downloadphp-git-0f66b352e99daaf01c9d53f910d0a2c1eda5fbae.tar.gz
-Allow skip in upper letters.
-Add 'info' result to --SKIPIF-- -> see following dba commits
-rwxr-xr-xrun-tests.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index b7a8031f77..27e4339dd0 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -534,7 +534,7 @@ TEST $file
save_text($tmp_skipif, $section_text['SKIPIF']);
$output = `$php $info_params $tmp_skipif`;
@unlink($tmp_skipif);
- if (ereg("^skip", trim($output))){
+ if (ereg("^skip", strtolower(trim($output)))) {
echo "SKIP $tested";
$reason = (ereg("^skip[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^skip[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
if ($reason) {
@@ -544,6 +544,12 @@ TEST $file
}
return 'SKIPPED';
}
+ if (ereg("^info", strtolower(trim($output)))) {
+ $reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
+ if ($reason) {
+ $tested .= " (info: $reason)";
+ }
+ }
}
}