fix bz2 race

Since we run these in parallel then there is a bad ordering of these where they eat eachother's files.
Esse commit está contido em:
Paul Tarjan
2013-04-23 16:59:57 -07:00
commit de Sara Golemon
commit 3f880f93e2
3 arquivos alterados com 8 adições e 4 exclusões
+1 -1
Ver Arquivo
@@ -2,7 +2,7 @@
error_reporting(E_ALL);
$filename = "testfile.bz2";
$filename = "bug51997.bz2";
$str = "This is a test string.\n";
$bz = bzopen($filename, "w");
bzwrite($bz, $str);
+1 -1
Ver Arquivo
@@ -2,7 +2,7 @@
error_reporting(E_ALL);
$filename = "testfile.bz2";
$filename = "with_files.bz2";
$str = "This is a test string.\n";
$bz = bzopen($filename, "w");
bzwrite($bz, $str);
+6 -2
Ver Arquivo
@@ -196,7 +196,7 @@ other_files = (
'ns_066.inc',
'ns_067.inc',
'unset.inc',
'quicktester.inc',
'tests/quicktester.inc',
)
errors = (
@@ -360,8 +360,12 @@ def walk(filename, source):
test = test.replace("1)) {\n\tunlink($file2", "2)) {\n\tunlink($file2")
if 'bug24054.php' in full_dest_filename:
test = test.replace("quicktester.inc", "tests/quicktester.inc")
if 'with_strings.php' in full_dest_filename:
if 'ext-bz2/with_strings.php' in full_dest_filename:
test = test.replace("../..", "")
if 'ext-bz2/bug51997.php' in full_dest_filename:
test = test.replace("testfile.bz2", "bug51997.bz2")
if 'ext-bz2/with_files.php' in full_dest_filename:
test = test.replace("testfile.bz2", "with_files.bz2")
file(full_dest_filename, 'w').write(test)