diff options
author | Marcus Boerger <helly@php.net> | 2002-11-23 16:57:25 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-23 16:57:25 +0000 |
commit | c7dc6c0e0072544f88c4080548ee2ffe6a9f9462 (patch) | |
tree | 4d38d40fab4ccc3f1ed010feababc09c1db7a360 | |
parent | 44c98c7e3f83eb907bc383a5d18c435b730cdc03 (diff) | |
download | php-git-c7dc6c0e0072544f88c4080548ee2ffe6a9f9462.tar.gz |
Move up general tests
# if MFH is needed should be decided by QA team: because the output # sequence changes
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php index 2413a30cbe..a3e999ec6f 100755 --- a/run-tests.php +++ b/run-tests.php @@ -236,12 +236,12 @@ function find_files($dir,$is_ext_dir=FALSE,$ignore=FALSE) function test_sort($a, $b) { global $cwd; - $ta = strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0; - $tb = strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0; + $ta = strpos($a, "{$cwd}/tests")===0 ? 1 + (strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0; + $tb = strpos($b, "{$cwd}/tests")===0 ? 1 + (strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0; if ($ta == $tb) { return strcmp($a, $b); } else { - return $ta ? -1 : +1; + return $tb - $ta; } } |