[llvm] r212419 - These should be EXPECT_TRUE, not EXPECT_FALSE. Amends r212415.
Aaron Ballman
aaron at aaronballman.com
Sun Jul 6 13:20:02 PDT 2014
Author: aaronballman
Date: Sun Jul 6 15:20:02 2014
New Revision: 212419
URL: http://llvm.org/viewvc/llvm-project?rev=212419&view=rev
Log:
These should be EXPECT_TRUE, not EXPECT_FALSE. Amends r212415.
Modified:
llvm/trunk/unittests/Support/Path.cpp
Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=212419&r1=212418&r2=212419&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Sun Jul 6 15:20:02 2014
@@ -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)));
More information about the llvm-commits
mailing list