From 6ff0a9ee4ac7378ec9ed712c35ba6dff1428975b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 23 Jun 2002 00:37:16 +0000 Subject: [PATCH] -make it run again --- run-tests.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run-tests.php b/run-tests.php index 41d72cc9c9..8ec8252ae7 100755 --- a/run-tests.php +++ b/run-tests.php @@ -108,7 +108,7 @@ $test_files = array(); $test_results = array(); // If parameters given assume they represent selected tests to run. -if ($argc>1) { +if (isset($argc) && $argc>1) { for ($i=1; $i<$argc; $i++) { $testfile = realpath($argv[$i]); $test_to_run[$testfile] = 1; @@ -116,7 +116,8 @@ if ($argc>1) { } // Compile a list of all test files (*.phpt). -$module_of_test = $test_files = array(); +$test_files = array(); +$module_of_test = array(); find_files(getcwd()); function find_files($dir) { -- 2.50.1