fix race condition
parent
783e0aec8a
commit
64d653ad92
|
@ -63,7 +63,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
|
||||||
|
|
||||||
do {
|
do {
|
||||||
$unique = $root . DIRECTORY_SEPARATOR . uniqid('composer-test-');
|
$unique = $root . DIRECTORY_SEPARATOR . uniqid('composer-test-');
|
||||||
if (!file_exists($unique) && mkdir($unique, 0777)) {
|
if (!file_exists($unique) && false !== @mkdir($unique, 0777)) {
|
||||||
return realpath($unique);
|
return realpath($unique);
|
||||||
}
|
}
|
||||||
} while (--$attempts);
|
} while (--$attempts);
|
||||||
|
|
Loading…
Reference in New Issue