summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJoel Linn <jl@conductive.de>2021-05-25 02:21:42 +0200
committerRick Gibbed <rick@gibbed.us>2021-06-02 22:28:43 -0500
commitceb382f8ecc92ce6dcb0fcd0e82b36f9f29161f0 (patch)
tree14b020907a0961e94a92e25be5c4d1595b022579 /tools
parent0e019f96b491d203dbcd910312ac12ce637b3635 (diff)
Update Catch2 test framework
- Use their main() method to fix command line options. Fix CLion testing - Change to correct tag syntax.
Diffstat (limited to 'tools')
-rw-r--r--tools/build/src/test_suite_main.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/build/src/test_suite_main.cc b/tools/build/src/test_suite_main.cc
index d84c7047c..1ea73ac36 100644
--- a/tools/build/src/test_suite_main.cc
+++ b/tools/build/src/test_suite_main.cc
@@ -2,7 +2,7 @@
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
- * Copyright 2019 Ben Vanik. All rights reserved. *
+ * Copyright 2021 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
@@ -17,7 +17,7 @@
#include "xenia/base/main.h"
#define CATCH_CONFIG_RUNNER
-#include "third_party/catch/include/catch.hpp"
+#include "third_party/catch/single_include/catch2/catch.hpp"
namespace xe {
namespace test_suite {
@@ -43,4 +43,5 @@ int test_suite_main(const std::vector<std::string>& args) {
#error XE_TEST_SUITE_NAME is undefined!
#endif
-DEFINE_ENTRY_POINT(XE_TEST_SUITE_NAME, xe::test_suite::test_suite_main, "");
+DEFINE_ENTRY_POINT_TRANSPARENT(XE_TEST_SUITE_NAME,
+ xe::test_suite::test_suite_main);