llvm.org GIT mirror llvm / 11e3755
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 Rafael Espindola 5 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
333333 fs::createTemporaryFile("prefix", "temp", FileDescriptor, TempPath));
334334
335335 // Make sure it exists.
336 bool TempFileExists;
337 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists));
338 EXPECT_TRUE(TempFileExists);
336 ASSERT_TRUE(sys::fs::exists(Twine(TempPath)));
339337
340338 // Create another temp tile.
341339 int FD2;
362360 EXPECT_EQ(B.type(), fs::file_type::file_not_found);
363361
364362 // Make sure Temp2 doesn't exist.
363 bool TempFileExists;
365364 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists));
366365 EXPECT_FALSE(TempFileExists);
367366