From 64d653ad92c5e3f28fbc0a51013f7feef7f74b15 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Tue, 26 Jan 2016 13:54:35 +0100 Subject: [PATCH] fix race condition --- tests/Composer/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/TestCase.php b/tests/Composer/TestCase.php index a065f200c..299ac9903 100644 --- a/tests/Composer/TestCase.php +++ b/tests/Composer/TestCase.php @@ -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);