]> granicus.if.org Git - php/commitdiff
Improve speed of finding tests (no more CVS, we're on svn now)
authorJohannes Schlüter <johannes@php.net>
Thu, 1 Sep 2011 14:52:55 +0000 (14:52 +0000)
committerJohannes Schlüter <johannes@php.net>
Thu, 1 Sep 2011 14:52:55 +0000 (14:52 +0000)
run-tests.php

index 2b584e49c6a560eb0582dc1228cd61484b8214cc..84cf6e8e2ddae0ef4fe6cd73dabbf915d8588126 100755 (executable)
@@ -866,7 +866,7 @@ function find_files($dir, $is_ext_dir = false, $ignore = false)
 
        while (($name = readdir($o)) !== false) {
 
-               if (is_dir("{$dir}/{$name}") && !in_array($name, array('.', '..', 'CVS'))) {
+               if (is_dir("{$dir}/{$name}") && !in_array($name, array('.', '..', '.svn'))) {
                        $skip_ext = ($is_ext_dir && !in_array(strtolower($name), $exts_to_test));
                        if ($skip_ext) {
                                $exts_skipped++;
@@ -1239,7 +1239,7 @@ TEST $file
                }
 
                // Match the beginning of a section.
-               if (preg_match(b'/^--([_A-Z]+)--/', $line, $r)) {
+               if (preg_match('/^--([_A-Z]+)--/', $line, $r)) {
                        $section = $r[1];
                        settype($section, STRING_TYPE);