Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorSergio Losilla2022-06-02 17:11:12 +0300
committerGitHub2022-06-02 16:11:12 +0200
commit5efd327dd4a638f63396ff22e908f16a8d6b9f20 (patch)
tree5aa7f5bad4e1b096dae66c9b2092402530c4743a /tests
parent40dd9dd3f4cb11d251e4c6e5cd24bf622891bbf0 (diff)
downloadcatch3-5efd327dd4a638f63396ff22e908f16a8d6b9f20.tar.gz
Fix crash when running with --list-listeners and no registered listeners (#2442)
Co-authored-by: Sergio Losilla <sergio.losilla@nt-bnct.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ExtraTests/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index e533ad4a..f33bd7c1 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -459,7 +459,10 @@ add_test(
NAME TestSpecs::OverrideFailureWithEmptySpec
COMMAND $<TARGET_FILE:NoTests> --allow-running-no-tests
)
-
+add_test(
+ NAME List::Listeners::WorksWithoutRegisteredListeners
+ COMMAND $<TARGET_FILE:NoTests> --list-listeners
+)
set( EXTRA_TEST_BINARIES
PrefixedMacros
DisabledMacros