diff options
| author | Sander Roobol <sander@php.net> | 2002-05-19 13:54:37 +0000 |
|---|---|---|
| committer | Sander Roobol <sander@php.net> | 2002-05-19 13:54:37 +0000 |
| commit | e3490f1429d8f03c16d8cef7cd835c3fb2d5b43e (patch) | |
| tree | b37db6c1a3ea9b412440a3971749640ffde524b3 | |
| parent | f3a8a7d6bbfb79a25daa82d084b6e2f1d945ebbf (diff) | |
| download | php-git-e3490f1429d8f03c16d8cef7cd835c3fb2d5b43e.tar.gz | |
Fix temporary filename problems, and update .cvsignores with new extensions
| -rwxr-xr-x | run-tests.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/run-tests.php b/run-tests.php index 4241c6764d..e2e5bb0d4e 100755 --- a/run-tests.php +++ b/run-tests.php @@ -295,9 +295,9 @@ TEST $file $tested = trim($section_text['TEST']).' ('.basename($file).')'; $tmp = realpath(dirname($file)); - $tmp_skipif = "$tmp/_SKIPIF"; - $tmp_file = "$tmp/_FILE"; - $tmp_post = "$tmp/_POST"; + $tmp_skipif = $tmp.uniqid('/phpt.'); + $tmp_file = $tmp.uniqid('/phpt.'); + $tmp_post = $tmp.uniqid('/phpt.'); @unlink($tmp_skipif); @unlink($tmp_file); @@ -369,7 +369,7 @@ COMMAND $cmd "; $out = `$cmd`; - + @unlink($tmp_post); @unlink($tmp_file); @@ -380,7 +380,7 @@ COMMAND $cmd $output = preg_replace('/\r\n/',"\n",$output); $wanted = preg_replace('/\r\n/',"\n",$wanted); - + $ok = (0 == strcmp($output,$wanted)); if ($ok) { echo "PASS $tested\n"; |
