Skip to content

Commit a5f21cb

Browse files
cmb69jorgsowa
authored andcommitted
Fix potential parallel test conflicts
Both tests call `create_files()` with the same `$name_prefix` what might clash. Co-authored-by: Gina Peter Banyard <[email protected]> Closes phpGH-16103.
1 parent 2dc5c65 commit a5f21cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/tests/file/file_get_contents_error.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ include($file_path."/file.inc");
1313
echo "\n-- Testing with Non-existing file --\n";
1414
print( file_get_contents("/no/such/file/or/dir") );
1515

16-
create_files($file_path, 1, "text", 0755, 100, "w", "file", 1, "byte");
16+
create_files($file_path, 1, "text", 0755, 100, "w", "file_get_contents_error", 1, "byte");
1717
$file_handle = fopen($file_path."/file_put_contents_error.tmp", "w");
1818

1919
echo "\n-- Testing for invalid negative maxlen values --\n";
2020
try {
21-
file_get_contents($file_path."/file1.tmp", FALSE, $file_handle, 0, -5);
21+
file_get_contents($file_path."/file_get_contents_error1.tmp", FALSE, $file_handle, 0, -5);
2222
} catch (ValueError $exception) {
2323
echo $exception->getMessage() . "\n";
2424
}
2525

26-
delete_files($file_path, 1);
26+
delete_files($file_path, 1, "file_get_contents_error", 1);
2727
fclose($file_handle);
2828
unlink($file_path."/file_put_contents_error.tmp");
2929

0 commit comments

Comments
 (0)