From 78a0ce4ed3d6cf3ad98e1b07fb1cd43b47793598 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 10 Jul 2012 17:30:44 +0000 Subject: [PATCH] Disable death tests on platforms which don't support them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160000 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ASTMatchers/ASTMatchersTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/ASTMatchers/ASTMatchersTest.cpp b/unittests/ASTMatchers/ASTMatchersTest.cpp index 3f7b5ed39d..98dbecb72f 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -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")); -- 2.50.1