mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-25 01:01:37 -05:00
UnitTests: Add setup error checking
Check return value of calls to File::CreateTempDir() from CoreTiming, FileSystem, and MMIO test classes to verify the test user directory exists, and fail the tests otherwise.
This commit is contained in:
@@ -34,6 +34,7 @@ TEST(UniqueID, UniqueEnough)
|
||||
TEST(IsMMIOAddress, SpecialAddresses)
|
||||
{
|
||||
const std::string profile_path = File::CreateTempDir();
|
||||
ASSERT_FALSE(profile_path.empty());
|
||||
UICommon::SetUserDirectory(profile_path);
|
||||
Config::Init();
|
||||
SConfig::Init();
|
||||
|
||||
Reference in New Issue
Block a user