forked from OSchip/llvm-project
[sanitizers] add a regression test for the bug fixed in r354366
llvm-svn: 354373
This commit is contained in:
parent
7d2cfa1fd5
commit
64c7b060bc
|
@ -131,4 +131,10 @@ TEST_F(SuppressionContextTest, HasSuppressionType) {
|
||||||
EXPECT_FALSE(ctx_.HasSuppressionType("signal"));
|
EXPECT_FALSE(ctx_.HasSuppressionType("signal"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_F(SuppressionContextTest, RegressionTestForBufferOverflowInSuppressions) {
|
||||||
|
EXPECT_DEATH(ctx_.Parse("race"), "failed to parse suppressions");
|
||||||
|
EXPECT_DEATH(ctx_.Parse("foo"), "failed to parse suppressions");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace __sanitizer
|
} // namespace __sanitizer
|
||||||
|
|
Loading…
Reference in New Issue