From f5872614d87c120e64b94fe1686005da9f53bc2d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 19 Feb 2019 16:15:01 +0100 Subject: [PATCH] Make ext/spl/tests/bug42364.phpt more robust If tests are run in parallel, files may be created and deleted in the directory. Create a separate directory just for this test to avoid this dependence. --- ext/spl/tests/bug42364.phpt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/spl/tests/bug42364.phpt b/ext/spl/tests/bug42364.phpt index 971fcc5ebb8..139af6113d0 100644 --- a/ext/spl/tests/bug42364.phpt +++ b/ext/spl/tests/bug42364.phpt @@ -2,10 +2,12 @@ Bug #42364 (Crash when using getRealPath with DirectoryIterator) --FILE-- getRealPath()); @@ -19,6 +21,8 @@ if ($count > 0) { } ?> ===DONE=== +--CLEAN-- + --EXPECTF-- Found %i entries! ===DONE===