From c789ae23459e5bce382d5559cfbc3a893aeb8873 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sun, 6 Jul 2014 20:20:02 +0000 Subject: [PATCH] These should be EXPECT_TRUE, not EXPECT_FALSE. Amends r212415. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212419 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/Path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 1a70772d578..cf2e1eed282 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -559,7 +559,7 @@ TEST_F(FileSystemTest, CarriageReturn) { } { auto Buf = MemoryBuffer::getFile(FilePathname.c_str()); - EXPECT_FALSE(Buf); + EXPECT_TRUE((bool)Buf); EXPECT_EQ(Buf.get()->getBuffer(), "\r\n"); } @@ -570,7 +570,7 @@ TEST_F(FileSystemTest, CarriageReturn) { } { auto Buf = MemoryBuffer::getFile(FilePathname.c_str()); - EXPECT_FALSE(Buf); + EXPECT_TRUE((bool)Buf); EXPECT_EQ(Buf.get()->getBuffer(), "\n"); } ASSERT_NO_ERROR(fs::remove(Twine(FilePathname))); -- 2.34.1