com php-src: Fix race condition when ext/hash/tests run in parallel: ext/hash/tests/hash_file_basic.phpt ext/hash/tests/hash _file_error.phpt
| From: | Sara Golemon | Date: | Tue, 30 Apr 2013 23:28:37 +0000 |
| Subject: | com php-src: Fix race condition when ext/hash/tests run in parallel: ext/hash/tests/hash_file_basic.phpt ext/hash/tests/hash _file_error.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-72077@lists.php.net to get a copy of this message | ||
Commit: 6aefaad46e98f8d434244c99cc7bd254330b1dc9
Author: Sara Golemon <pollita@php.net> Tue, 30 Apr 2013 16:28:37 -0700
Parents: 734cb61f819c3fd15f993a54e209d8375ade3982
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6aefaad46e98f8d434244c99cc7bd254330b1dc9
Log:
Fix race condition when ext/hash/tests run in parallel
Changed paths:
M ext/hash/tests/hash_file_basic.phpt
M ext/hash/tests/hash_file_error.phpt
Diff:
diff --git a/ext/hash/tests/hash_file_basic.phpt b/ext/hash/tests/hash_file_basic.phpt
index 9851c14..b16927d 100644
--- a/ext/hash/tests/hash_file_basic.phpt
+++ b/ext/hash/tests/hash_file_basic.phpt
@@ -15,7 +15,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
echo "*** Testing hash_file() : basic functionality ***\n";
// Set up file
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_basic_example.txt';
file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
var_dump( hash_file( 'md5', $filename ) );
@@ -30,7 +30,7 @@ var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) );
--CLEAN--
<?php
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_basic_example.txt';
unlink( $filename );
?>
diff --git a/ext/hash/tests/hash_file_error.phpt b/ext/hash/tests/hash_file_error.phpt
index 326fbd5..e138030 100644
--- a/ext/hash/tests/hash_file_error.phpt
+++ b/ext/hash/tests/hash_file_error.phpt
@@ -15,7 +15,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
echo "*** Testing hash_file() : error conditions ***\n";
// Set up file
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_error_example.txt';
file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
@@ -38,7 +38,7 @@ var_dump( hash_file( 'md5', $filename, false, $extra_arg ) );
--CLEAN--
<?php
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_error_example.txt';
unlink( $filename );
?>