forked from OSchip/llvm-project
Disable death tests on platforms which don't support them.
llvm-svn: 160000
This commit is contained in:
parent
617f5269c3
commit
60d7f5a1d7
|
@ -16,6 +16,7 @@
|
||||||
namespace clang {
|
namespace clang {
|
||||||
namespace ast_matchers {
|
namespace ast_matchers {
|
||||||
|
|
||||||
|
#if GTEST_HAS_DEATH_TEST
|
||||||
TEST(HasNameDeathTest, DiesOnEmptyName) {
|
TEST(HasNameDeathTest, DiesOnEmptyName) {
|
||||||
ASSERT_DEBUG_DEATH({
|
ASSERT_DEBUG_DEATH({
|
||||||
DeclarationMatcher HasEmptyName = record(hasName(""));
|
DeclarationMatcher HasEmptyName = record(hasName(""));
|
||||||
|
@ -29,6 +30,7 @@ TEST(IsDerivedFromDeathTest, DiesOnEmptyBaseName) {
|
||||||
EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
|
EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
|
||||||
}, "");
|
}, "");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(NameableDeclaration, MatchesVariousDecls) {
|
TEST(NameableDeclaration, MatchesVariousDecls) {
|
||||||
DeclarationMatcher NamedX = nameableDeclaration(hasName("X"));
|
DeclarationMatcher NamedX = nameableDeclaration(hasName("X"));
|
||||||
|
|
Loading…
Reference in New Issue