From a2e20b07f863a6a4fd15a17cfbfc7f8dfcc7f7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 7 Mar 2017 10:17:59 +0100 Subject: [PATCH] "Fix" build by annotating the new test as !shouldfail The quick test under ctest checks only for no tests failing, not for the expected output. --- projects/SelfTest/MiscTests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index e98b2630..02099a71 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -400,8 +400,8 @@ static int f() { return 1; } -TEST_CASE( "#835 -- errno should not be touched by Catch" ) { - errno = 1; - CHECK(f() == 0); - REQUIRE(errno == 1); // Check that f() doesn't touch errno. +TEST_CASE( "#835 -- errno should not be touched by Catch", "[!shouldfail]" ) { + errno = 1; + CHECK(f() == 0); + REQUIRE(errno == 1); // Check that f() doesn't touch errno. }