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

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-07-06 20:33:08 +0200
committerMartin Hořeňovský2020-07-26 10:48:01 +0200
commit13917c44b423920397dbf026ef8853f847a4656e (patch)
tree3a8c2544f35aa7fac107fc4ddf893e4abf3a2693 /tests
parente6d947f6d4f84713637da5e5b37cd1f84b925403 (diff)
downloadcatch3-13917c44b423920397dbf026ef8853f847a4656e.tar.gz
--min-duration is overriden by -d no
Diffstat (limited to 'tests')
-rw-r--r--tests/ExtraTests/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt
index 3c6da4d5..5423ab1f 100644
--- a/tests/ExtraTests/CMakeLists.txt
+++ b/tests/ExtraTests/CMakeLists.txt
@@ -30,6 +30,15 @@ set_tests_properties(
PASS_REGULAR_EXPRESSION "s: sleep_for_100ms"
)
+# -d no overrides the threshold, so we should never see any tests even
+# with ridiculously low min duration threshold
+add_test(NAME MinDuration::DurationOverrideNo COMMAND $<TARGET_FILE:SelfTest> --min-duration 0.0001 -d no [min_duration_test])
+set_tests_properties(
+ MinDuration::DurationOverrideNo
+ PROPERTIES
+ FAIL_REGULAR_EXPRESSION "sleep_for_200ms"
+)
+
# ------------ end of duration reporting tests