summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2000-12-08 12:57:11 +0000
committerStig Bakken <ssb@php.net>2000-12-08 12:57:11 +0000
commitfe9290e4a94e20f567340611328862026edace30 (patch)
treeabc7cf403396319557b968b8720d5eab475f5bdc
parent05dc2269198a05feca9be578a968cb27b4a68bcb (diff)
downloadphp-git-fe9290e4a94e20f567340611328862026edace30.tar.gz
* output fix for skipped tests
-rwxr-xr-xrun-tests.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 27eb2aeb1e..ac36e77c21 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -242,6 +242,9 @@ function run_tests_in_dir($dir = '.')
return true;
}
$oskipped = $skipped;
+ if (sizeof($testfiles) == 0) {
+ return;
+ }
writeln("%bRunning tests in $dir%B");
writeln("=================".str_repeat("=", strlen($dir)));
sort($testfiles);
@@ -261,7 +264,7 @@ function run_tests_in_dir($dir = '.')
$total++;
}
if ($oskipped + (isset($tests_in_dir[$dir])?$tests_in_dir[$dir]:0) == $skipped) {
- writeln("(all skipped)");
+ writeln("[all $skipped test(s) skipped]");
}
writeln("");
return true;