mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-30 16:59:32 +01:00
Fix lazy removal of unscoped messages also removing still valid msgs
This commit is contained in:
@@ -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