cvs: php4 / run-tests.php

From: Date: Sat, 23 Nov 2002 16:57:25 +0000
Subject: cvs: php4 / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16583@lists.php.net to get a copy of this message
helly Sat Nov 23 11:57:25 2002 EDT Modified files: /php4 run-tests.php Log: Move up general tests # if MFH is needed should be decided by QA team: because the output # sequence changes Index: php4/run-tests.php diff -u php4/run-tests.php:1.129 php4/run-tests.php:1.130 --- php4/run-tests.php:1.129 Thu Nov 21 11:48:39 2002 +++ php4/run-tests.php Sat Nov 23 11:57:25 2002 @@ -236,12 +236,12 @@ 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; } }

« previous php.cvs (#16583) next »