Skip to content

Commit db484b6

Browse files
committed
Prevent parallel test conflicts
Both tests used the same folder, which could clash in case the tests are run simultaneously.
1 parent 8318379 commit db484b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/standard/tests/file/unlink_error-win32-mb.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
1212
Description : Deletes filename
1313
*/
1414

15-
$file_path = __DIR__.DIRECTORY_SEPARATOR."私はガラスを食べられます";
15+
$file_path = __DIR__.DIRECTORY_SEPARATOR."unlinkErr私はガラスを食べられます";
1616

1717
@mkdir($file_path);
1818

@@ -62,9 +62,9 @@ echo "Done\n";
6262
?>
6363
--CLEAN--
6464
<?php
65-
unlink(__DIR__."/私はガラスを食べられます/unlink_error.tmp");
66-
rmdir(__DIR__."/私はガラスを食べられます/unlink_error");
67-
rmdir(__DIR__."/私はガラスを食べられます");
65+
unlink(__DIR__."/unlinkErr私はガラスを食べられます/unlink_error.tmp");
66+
rmdir(__DIR__."/unlinkErr私はガラスを食べられます/unlink_error");
67+
rmdir(__DIR__."/unlinkErr私はガラスを食べられます");
6868
?>
6969
--EXPECTF--
7070
*** Testing unlink() : error conditions ***

ext/standard/tests/file/unlink_variation1-win32-mb.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
1717
*/
1818

1919

20-
$file_path = __DIR__.DIRECTORY_SEPARATOR."私はガラスを食べられます";
20+
$file_path = __DIR__.DIRECTORY_SEPARATOR."unlinkVar1私はガラスを食べられます";
2121
@mkdir($file_path);
2222

2323
// temp dir name used here

0 commit comments

Comments
 (0)