]> granicus.if.org Git - clang/commitdiff
Disable death tests on platforms which don't support them.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 10 Jul 2012 17:30:44 +0000 (17:30 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 10 Jul 2012 17:30:44 +0000 (17:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160000 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/ASTMatchers/ASTMatchersTest.cpp

index 3f7b5ed39d9c3f819d644dec7622edee1ec206f9..98dbecb72f01681c276417c428f541f31e087470 100644 (file)
@@ -16,6 +16,7 @@
 namespace clang {
 namespace ast_matchers {
 
+#if GTEST_HAS_DEATH_TEST
 TEST(HasNameDeathTest, DiesOnEmptyName) {
   ASSERT_DEBUG_DEATH({
     DeclarationMatcher HasEmptyName = record(hasName(""));
@@ -29,6 +30,7 @@ TEST(IsDerivedFromDeathTest, DiesOnEmptyBaseName) {
     EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
   }, "");
 }
+#endif
 
 TEST(NameableDeclaration, MatchesVariousDecls) {
   DeclarationMatcher NamedX = nameableDeclaration(hasName("X"));