From b3c9f49cbedd03673a490cbeb7f886a3663e3bb8 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 2 Jun 2023 18:00:51 +0200 Subject: Core: Assert that only the Host thread may call PauseAndLock(). --- Source/UnitTests/UnitTestsMain.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/UnitTests/UnitTestsMain.cpp') 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 #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(); -- cgit v1.2.3