summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-12-03 10:45:53 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-12-03 10:45:53 +0000
commit5f683e7d7857cc458018b5fc8a501ba1f51cfc15 (patch)
tree59190b4c0b4660ef6fc28239618acc4681bb65dc /run-tests.php
parentc95a8f39b97071c2f1a42e3d00cbec5fdd84e740 (diff)
downloadphp-git-5f683e7d7857cc458018b5fc8a501ba1f51cfc15.tar.gz
changed run-tests.php to use 'php -q' instead of 'php -f'
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/run-tests.php b/run-tests.php
index 3f90d4251b..00d252ff60 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -124,11 +124,11 @@ function do_testing($argc, &$argv) {
global $term, $windows_p, $php, $skip, $testdirs, $tmpfile, $opts,
$skipped, $failed, $passed, $total, $term_bold, $term_norm;
- if ($argc > 0) {
- if (is_dir($argv[0])) {
- $dir = $argv[0];
+ if ($argc > 1) {
+ if (is_dir($argv[1])) {
+ $dir = $argv[1];
} else {
- for ($i = 0; $i < $argc; $i++) {
+ for ($i = 1; $i < $argc; $i++) {
switch (run_test($argv[$i])) {
case TEST_SKIPPED:
case TEST_INTERNAL_ERROR: