From: Rafael Espindola Date: Thu, 11 Sep 2014 19:11:02 +0000 (+0000) Subject: Use simpler version of sys::fs::exists. NFC. X-Git-Tag: android-x86-7.1-r4~57623 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=11e375565a37274782deb7fa23f13f73a33e3a00;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 94ccab6c712..a00920264a1 100644 --- a/unittests/Support/Path.cpp +++ b/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);