diff options
| author | Martin Hořeňovský | 2020-02-01 20:17:54 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-02-16 15:47:00 +0100 |
| commit | 89f18f15cae32f201ddad2cb110f062659e1bc3c (patch) | |
| tree | f0934a3cf9d2111ee0b99117ffc37d2e8c95d18d /tests/ExtraTests | |
| parent | 3c7e737a7bcf2d2059b1db2a5a221f76806ae8b0 (diff) | |
| download | catch3-89f18f15cae32f201ddad2cb110f062659e1bc3c.tar.gz | |
Add a test for custom debug break macros
See #1846
Diffstat (limited to 'tests/ExtraTests')
| -rw-r--r-- | tests/ExtraTests/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index b534fc8d..05c444f4 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -142,6 +142,14 @@ if (MSVC) add_test(NAME WindowsHeader COMMAND WindowsHeader -r compact) endif() +add_executable(DebugBreakMacros ${TESTS_DIR}/X12-CustomDebugBreakMacro.cpp) +add_test(NAME DebugBreakMacros COMMAND DebugBreakMacros --break) +set_tests_properties( + DebugBreakMacros + PROPERTIES + PASS_REGULAR_EXPRESSION "Pretty please, break into debugger" +) + set( EXTRA_TEST_BINARIES PrefixedMacros DisabledMacros @@ -150,6 +158,7 @@ set( EXTRA_TEST_BINARIES FallbackStringifier DisableStringification BenchmarkingMacros + DebugBreakMacros ) # Shared config |