mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
Use simpler version of sys::fs::exists. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e257ec6e5e
commit
11e375565a
@ -334,9 +334,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
||||
fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath));
|
||||
|
||||
// Make sure it exists.
|
||||
bool TempFileExists;
|
||||
ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists));
|
||||
EXPECT_TRUE(TempFileExists);
|
||||
ASSERT_TRUE(sys::fs::exists(Twine(TempPath)));
|
||||
|
||||
// Create another temp tile.
|
||||
int FD2;
|
||||
@ -363,6 +361,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
||||
EXPECT_EQ(B.type(), fs::file_type::file_not_found);
|
||||
|
||||
// Make sure Temp2 doesn't exist.
|
||||
bool TempFileExists;
|
||||
ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists));
|
||||
EXPECT_FALSE(TempFileExists);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user