1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00

Prevent parallel test conflicts

Both tests used the same folder, which could clash in case the tests
are run simultaneously.
This commit is contained in:
Christoph M. Becker
2020-07-09 12:35:31 +02:00
parent 8318379dd3
commit db484b612d
2 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
Description : Deletes filename
*/
$file_path = __DIR__.DIRECTORY_SEPARATOR."私はガラスを食べられます";
$file_path = __DIR__.DIRECTORY_SEPARATOR."unlinkErr私はガラスを食べられます";
@mkdir($file_path);
@@ -62,9 +62,9 @@ echo "Done\n";
?>
--CLEAN--
<?php
unlink(__DIR__."/私はガラスを食べられます/unlink_error.tmp");
rmdir(__DIR__."/私はガラスを食べられます/unlink_error");
rmdir(__DIR__."/私はガラスを食べられます");
unlink(__DIR__."/unlinkErr私はガラスを食べられます/unlink_error.tmp");
rmdir(__DIR__."/unlinkErr私はガラスを食べられます/unlink_error");
rmdir(__DIR__."/unlinkErr私はガラスを食べられます");
?>
--EXPECTF--
*** Testing unlink() : error conditions ***

View File

@@ -17,7 +17,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') {
*/
$file_path = __DIR__.DIRECTORY_SEPARATOR."私はガラスを食べられます";
$file_path = __DIR__.DIRECTORY_SEPARATOR."unlinkVar1私はガラスを食べられます";
@mkdir($file_path);
// temp dir name used here