[cfe-commits] r160000 - /cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Jul 10 10:30:44 PDT 2012
Author: d0k
Date: Tue Jul 10 12:30:44 2012
New Revision: 160000
URL: http://llvm.org/viewvc/llvm-project?rev=160000&view=rev
Log:
Disable death tests on platforms which don't support them.
Modified:
cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
Modified: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp?rev=160000&r1=159999&r2=160000&view=diff
==============================================================================
--- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp (original)
+++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.cpp Tue Jul 10 12:30:44 2012
@@ -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 @@
EXPECT_TRUE(notMatches("class X {};", IsDerivedFromEmpty));
}, "");
}
+#endif
TEST(NameableDeclaration, MatchesVariousDecls) {
DeclarationMatcher NamedX = nameableDeclaration(hasName("X"));
More information about the cfe-commits
mailing list