ADD: added Catch2 test; added TrackClass

This commit is contained in:
Henry Winkel
2022-12-21 13:38:51 +01:00
parent 98ebb563a8
commit 56833c93f2
400 changed files with 100059 additions and 45 deletions

View File

@@ -0,0 +1,17 @@
// X12-CustomDebugBreakMacro.cpp
// Test that user-defined `CATCH_BREAK_INTO_DEBUGGER` is respected and used.
#include <iostream>
void custom_debug_break() {
std::cerr << "Pretty please, break into debugger\n";
}
#define CATCH_BREAK_INTO_DEBUGGER() custom_debug_break()
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
TEST_CASE("Failing test that breaks into debugger", "[macros]") {
REQUIRE(1 == 2);
}