From ef28243c6408a0d6edaaa50796620ee80e7b3d3a Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Wed, 30 Oct 2024 09:54:58 +0000 Subject: [PATCH] UnitTestRunner: Fix an overzealous test for the existence of a user directory --- modules/juce_core/files/juce_File.cpp | 1 - modules/juce_core/files/juce_File.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/juce_core/files/juce_File.cpp b/modules/juce_core/files/juce_File.cpp index 357aa3af9d..073ee8e925 100644 --- a/modules/juce_core/files/juce_File.cpp +++ b/modules/juce_core/files/juce_File.cpp @@ -1080,7 +1080,6 @@ public: expect (home.isDirectory()); expect (home.exists()); expect (! home.existsAsFile()); - expect (File::getSpecialLocation (File::userApplicationDataDirectory).isDirectory()); expect (File::getSpecialLocation (File::currentExecutableFile).exists()); expect (File::getSpecialLocation (File::currentApplicationFile).exists()); expect (File::getSpecialLocation (File::invokedExecutableFile).exists()); diff --git a/modules/juce_core/files/juce_File.h b/modules/juce_core/files/juce_File.h index 739fdc609b..008ae9b350 100644 --- a/modules/juce_core/files/juce_File.h +++ b/modules/juce_core/files/juce_File.h @@ -902,7 +902,8 @@ public: On Windows, this might be "\Documents and Settings\username\Application Data". On the Mac, it might be "~/Library". If you're going to store your settings in here, always create your own sub-folder to put them in, to avoid making a mess. - On GNU/Linux it is "~/.config". + On GNU/Linux it is "~/.config" and you may need to create the directory before + using it. */ userApplicationDataDirectory,