dolphin/Source/UnitTests/UnitTestsMain.cpp
JosJuice 068947e2b6 Core: Remove IsHostThread
The core no longer cares which thread is the host thread.

Cleaning up Android's HostThreadLock is left for another PR, in part
because the HostThreadLock in NativeConfig.cpp still serves a purpose,
and in part to make any issues easier to bisect.
2025-11-10 21:14:56 +01:00

32 lines
732 B
C++

// Copyright 2023 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
// Based on gtest_main.cc
#include <cstdio>
#include <fmt/format.h>
#include "Common/MsgHandler.h"
#include "Core/Core.h"
#include "gtest/gtest.h"
namespace
{
bool TestMsgHandler(const char* caption, const char* text, bool yes_no, Common::MsgType style)
{
fmt::print(stderr, "{}\n", text);
ADD_FAILURE();
// Return yes to any question (we don't need Dolphin to break on asserts)
return true;
}
} // namespace
int main(int argc, char** argv)
{
fmt::print(stderr, "Running main() from UnitTestsMain.cpp\n");
Common::RegisterMsgAlertHandler(TestMsgHandler);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}