diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-11 19:11:02 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-09-11 19:11:02 +0000 |
commit | c1599157902e8deea660e22b396c111bb0bea69b (patch) | |
tree | dfcdfa035e563305067e2c9a5a432c9c06c4d2d8 /llvm/unittests/Support/Path.cpp | |
parent | 3e5cc65efab65d1ef6b74ec7524776e872fd291a (diff) | |
download | llvm-c1599157902e8deea660e22b396c111bb0bea69b.zip llvm-c1599157902e8deea660e22b396c111bb0bea69b.tar.gz llvm-c1599157902e8deea660e22b396c111bb0bea69b.tar.bz2 |
Use simpler version of sys::fs::exists. NFC.
llvm-svn: 217618
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 94ccab6..a009202 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -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); |