mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Use simpler version of sys::fs::exists. NFC.
llvm-svn: 217618
This commit is contained in:
parent
5e43285c55
commit
07aeb38b08
@ -334,9 +334,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
|||||||
fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath));
|
fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath));
|
||||||
|
|
||||||
// Make sure it exists.
|
// Make sure it exists.
|
||||||
bool TempFileExists;
|
ASSERT_TRUE(sys::fs::exists(Twine(TempPath)));
|
||||||
ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists));
|
|
||||||
EXPECT_TRUE(TempFileExists);
|
|
||||||
|
|
||||||
// Create another temp tile.
|
// Create another temp tile.
|
||||||
int FD2;
|
int FD2;
|
||||||
@ -363,6 +361,7 @@ TEST_F(FileSystemTest, TempFiles) {
|
|||||||
EXPECT_EQ(B.type(), fs::file_type::file_not_found);
|
EXPECT_EQ(B.type(), fs::file_type::file_not_found);
|
||||||
|
|
||||||
// Make sure Temp2 doesn't exist.
|
// Make sure Temp2 doesn't exist.
|
||||||
|
bool TempFileExists;
|
||||||
ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists));
|
ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists));
|
||||||
EXPECT_FALSE(TempFileExists);
|
EXPECT_FALSE(TempFileExists);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user