diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-02 18:00:51 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-02 18:51:43 +0200 |
| commit | b3c9f49cbedd03673a490cbeb7f886a3663e3bb8 (patch) | |
| tree | 552151ef2296f9b2976aa43bd23db4ab69add524 /Source/UnitTests/UnitTestsMain.cpp | |
| parent | 7bbd530eb5046bd218636d9b6ba0b7c318a09e55 (diff) | |
Core: Assert that only the Host thread may call PauseAndLock().
Diffstat (limited to 'Source/UnitTests/UnitTestsMain.cpp')
| -rw-r--r-- | Source/UnitTests/UnitTestsMain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/UnitTests/UnitTestsMain.cpp b/Source/UnitTests/UnitTestsMain.cpp index aa4df43f48..4eed0c6099 100644 --- a/Source/UnitTests/UnitTestsMain.cpp +++ b/Source/UnitTests/UnitTestsMain.cpp @@ -6,6 +6,7 @@ #include <fmt/format.h> #include "Common/MsgHandler.h" +#include "Core/Core.h" #include "gtest/gtest.h" @@ -24,6 +25,7 @@ int main(int argc, char** argv) { fmt::print(stderr, "Running main() from UnitTestsMain.cpp\n"); Common::RegisterMsgAlertHandler(TestMsgHandler); + Core::DeclareAsHostThread(); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); |
