]> granicus.if.org Git - php/commitdiff
Fix "make test" on win32
authorDmitry Stogov <dmitry@php.net>
Tue, 22 Aug 2006 05:00:51 +0000 (05:00 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 22 Aug 2006 05:00:51 +0000 (05:00 +0000)
run-tests.php

index a7e978ef87a01baf384d812e3fb63670538612b2..6d1aca85cb4236702b0113113f46913a7e4e7b60 100755 (executable)
@@ -1330,9 +1330,10 @@ TEST $file
        }
 
        if ($leak_check) {
-               $cmd = "USE_ZEND_ALLOC=0 valgrind -q --tool=memcheck --trace-children=yes --log-file-exactly=$memcheck_filename $cmd";
+               $env['USE_ZEND_ALLOC'] = '0';
+               $cmd = "valgrind -q --tool=memcheck --trace-children=yes --log-file-exactly=$memcheck_filename $cmd";
        } else {
-               $cmd = "USE_ZEND_ALLOC=1 ".$cmd;
+               $env['USE_ZEND_ALLOC'] = '1';
        }
 
        if ($DETAILED) echo "