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:
@@ -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 ***
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user