diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2023-01-17 23:30:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-17 23:30:29 +0100 |
| commit | a7d16831494ec1c0ca15638b5b600e9028fb4541 (patch) | |
| tree | 88313b52a2359309339d1de62b8747e3d75ef01f /Source/UnitTests/UnitTestsMain.cpp | |
| parent | 686ac363ba8cbd395f173a4eefd8694c5dab3126 (diff) | |
| parent | 3910bdd68b227bbf62c9822d173879e4dee3ccb3 (diff) | |
Merge pull request #11432 from Pokechu22/generic-vertex-loader-test-error
VertexLoader: Fix loading tangent/binormal caches with NormalIndex3
Diffstat (limited to 'Source/UnitTests/UnitTestsMain.cpp')
| -rw-r--r-- | Source/UnitTests/UnitTestsMain.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Source/UnitTests/UnitTestsMain.cpp b/Source/UnitTests/UnitTestsMain.cpp new file mode 100644 index 0000000000..aa4df43f48 --- /dev/null +++ b/Source/UnitTests/UnitTestsMain.cpp @@ -0,0 +1,30 @@ +// 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 "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(); +} |
