mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fixing compile errors related to changes with MemoryBuffer::getFile.
llvm-svn: 212415
This commit is contained in:
parent
858b9e1423
commit
b97f52e5e0
@ -558,9 +558,9 @@ TEST_F(FileSystemTest, CarriageReturn) {
|
||||
File << '\n';
|
||||
}
|
||||
{
|
||||
std::unique_ptr<MemoryBuffer> Buf;
|
||||
MemoryBuffer::getFile(FilePathname.c_str(), Buf);
|
||||
EXPECT_EQ(Buf->getBuffer(), "\r\n");
|
||||
auto Buf = MemoryBuffer::getFile(FilePathname.c_str());
|
||||
EXPECT_FALSE(Buf);
|
||||
EXPECT_EQ(Buf.get()->getBuffer(), "\r\n");
|
||||
}
|
||||
|
||||
{
|
||||
@ -569,9 +569,9 @@ TEST_F(FileSystemTest, CarriageReturn) {
|
||||
File << '\n';
|
||||
}
|
||||
{
|
||||
std::unique_ptr<MemoryBuffer> Buf;
|
||||
MemoryBuffer::getFile(FilePathname.c_str(), Buf);
|
||||
EXPECT_EQ(Buf->getBuffer(), "\n");
|
||||
auto Buf = MemoryBuffer::getFile(FilePathname.c_str());
|
||||
EXPECT_FALSE(Buf);
|
||||
EXPECT_EQ(Buf.get()->getBuffer(), "\n");
|
||||
}
|
||||
ASSERT_NO_ERROR(fs::remove(Twine(FilePathname)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user