1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

UnitTestRunner: Fix bug in File tests when multiple test instances are run simultaneously

This commit is contained in:
reuk 2021-04-07 15:30:57 +01:00
parent 1a5fb5992a
commit cfd85ad4ee
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -1097,7 +1097,10 @@ public:
beginTest ("Writing");
File demoFolder (temp.getChildFile ("JUCE UnitTests Temp Folder.folder"));
const auto tempFolderName = "JUCE UnitTests Temp Folder "
+ String::toHexString (Random::getSystemRandom().nextInt())
+ ".folder";
File demoFolder (temp.getChildFile (tempFolderName));
expect (demoFolder.deleteRecursively());
expect (demoFolder.createDirectory());
expect (demoFolder.isDirectory());