diff options
Diffstat (limited to 'projects/SelfTest/UsageTests/Tricky.tests.cpp')
-rw-r--r-- | projects/SelfTest/UsageTests/Tricky.tests.cpp | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/projects/SelfTest/UsageTests/Tricky.tests.cpp b/projects/SelfTest/UsageTests/Tricky.tests.cpp index 77bad2fc..8467e541 100644 --- a/projects/SelfTest/UsageTests/Tricky.tests.cpp +++ b/projects/SelfTest/UsageTests/Tricky.tests.cpp @@ -17,7 +17,7 @@ #include "catch.hpp" -#include <stdio.h> +#include <cstdio> #include <sstream> #include <iostream> @@ -394,12 +394,6 @@ TEST_CASE("Commas in various macros are allowed") { } } -TEST_CASE( "null deref", "[.][failing][!nonportable]" ) { - CHECK( false ); - int *x = NULL; - *x = 1; -} - TEST_CASE( "non-copyable objects", "[.][failing]" ) { #if CHECK_CONFIG_USE_RTTI // Thanks to Agustin Bergé (@k-ballo on the cpplang Slack) for raising this @@ -408,32 +402,6 @@ TEST_CASE( "non-copyable objects", "[.][failing]" ) { #endif } -// #925 -using signal_t = void (*) (void*); - -struct TestClass { - signal_t testMethod_uponComplete_arg = nullptr; -}; - -namespace utility { - inline static void synchronizing_callback( void * ) { } -} - -TEST_CASE("#925: comparing function pointer to function address failed to compile", "[!nonportable]" ) { - - TestClass test; - REQUIRE(utility::synchronizing_callback != test.testMethod_uponComplete_arg); -} - -TEST_CASE( "Bitfields can be captured (#1027)" ) { - struct Y { - uint32_t v : 1; - }; - Y y{ 0 }; - REQUIRE( y.v == 0 ); - REQUIRE( 0 == y.v ); -} - TEST_CASE("#1514: stderr/stdout is not captured in tests aborted by an exception", "[output-capture][regression][.]") { std::cout << "This would not be caught previously\n" << std::flush; std::clog << "Nor would this\n" << std::flush; |