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
This commit is contained in:
Aaron Ballman 2014-07-06 20:20:02 +00:00
parent d08df5a1c5
commit c789ae2345

View File

@ -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)));