summaryrefslogtreecommitdiff
path: root/Source/UnitTests/UnitTestsMain.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2023-06-06 13:50:20 +0200
committerGitHub <noreply@github.com>2023-06-06 13:50:20 +0200
commit2d56daf1bb62dfdf3db98e541071b17065b3c849 (patch)
tree9ee2f57e149df1a500a62c7a1660e7587f278cb1 /Source/UnitTests/UnitTestsMain.cpp
parent83b4af86b6defab21bc695dc9d6e876ac67b345d (diff)
parentb3c9f49cbedd03673a490cbeb7f886a3663e3bb8 (diff)
Merge pull request #11873 from AdmiralCurtiss/pause-and-lock-host
Core: Assert that only the Host thread may call PauseAndLock().
Diffstat (limited to 'Source/UnitTests/UnitTestsMain.cpp')
-rw-r--r--Source/UnitTests/UnitTestsMain.cpp2
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();