Fix lazy removal of unscoped messages also removing still valid msgs
This commit is contained in:
21 files changed
+222
-18
No files matched your search
@@ -360,3 +360,12 @@ TEST_CASE( "Scoped message applies to all assertions in scope",
|
||||
CHECK( false );
|
||||
CHECK( false );
|
||||
}
|
||||
|
||||
TEST_CASE(
|
||||
"Delayed unscoped message clearing does not catch newly inserted messages",
|
||||
"[messages][unscoped][!shouldfail]" ) {
|
||||
UNSCOPED_INFO( "a" );
|
||||
REQUIRE( true );
|
||||
UNSCOPED_INFO( "b" );
|
||||
REQUIRE( false );
|
||||
}
|
||||
Reference in new issue
Block a user