diff options
| author | Dentomologist <dentomologist@gmail.com> | 2021-01-22 11:34:45 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2021-01-22 11:49:59 -0800 |
| commit | 83f912b58af2d39265184aa5ca4c30050757fe9e (patch) | |
| tree | 530e76ec7873ea14e9ec55b8b53c14989d13184b /Source/UnitTests/Core/MMIOTest.cpp | |
| parent | caff472dbf27fbcc5b3d28cbf5b1789592a9f857 (diff) | |
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.
Diffstat (limited to 'Source/UnitTests/Core/MMIOTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/MMIOTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/UnitTests/Core/MMIOTest.cpp b/Source/UnitTests/Core/MMIOTest.cpp index 04bf850a96..56433476b5 100644 --- a/Source/UnitTests/Core/MMIOTest.cpp +++ b/Source/UnitTests/Core/MMIOTest.cpp @@ -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(); |
