1
0
Fork 0

fix race condition

pull/4834/head
Rob Bast 2016-01-26 13:54:35 +01:00
parent 783e0aec8a
commit 64d653ad92
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase
do {
$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);
}
} while (--$attempts);