]> granicus.if.org Git - php/commitdiff
Executing tests once is enough
authorMarcus Boerger <helly@php.net>
Fri, 23 May 2003 22:36:20 +0000 (22:36 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 23 May 2003 22:36:20 +0000 (22:36 +0000)
run-tests.php

index 07d493ac0b2e6e7e0f55f627e86bc33604e77f4f..9270ea12d6e574019d08bef20941186b3c197a41 100755 (executable)
@@ -197,6 +197,7 @@ if (isset($argc) && $argc > 1) {
                        $test_files[] = $testfile;
                }
        }
+       $test_files = array_unique($test_files);
 
        // Run selected tests.
        if (count($test_files)) {
@@ -274,6 +275,7 @@ function test_sort($a, $b) {
        }
 }
 
+$test_files = array_unique($test_files);
 usort($test_files, "test_sort");
 
 $start_time = time();