From a2b345abb19003ba489ea3953de3520a87299cd5 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 12 Jan 2014 17:49:26 +0000 Subject: [PATCH] DynamicASTMatchers/VariantValueTest.cpp: It works with msvcrt since setmode(stderr, O_BINARY) were removed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199059 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ASTMatchers/Dynamic/VariantValueTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp b/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp index d2b8a58bc8..e62a4645f7 100644 --- a/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp +++ b/unittests/ASTMatchers/Dynamic/VariantValueTest.cpp @@ -117,7 +117,7 @@ TEST(VariantValueTest, Matcher) { EXPECT_FALSE(VariantValue(VariantMatcher::SingleMatcher(varDecl())) .getMatcher() .hasTypedMatcher()); -#if !defined(NDEBUG) && GTEST_HAS_DEATH_TEST && !defined(_MSC_VER) +#if !defined(NDEBUG) && GTEST_HAS_DEATH_TEST // Trying to get the wrong matcher fails an assertion in Matcher. We don't // do this test when building with MSVC because its debug C runtime prints the // assertion failure message as a wide string, which gtest doesn't understand. -- 2.40.0