Support/FileSystem: Add remove implementation.
llvm-svn: 120817
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp
index d19bf4a..40e6281 100644
--- a/llvm/unittests/Support/Path.cpp
+++ b/llvm/unittests/Support/Path.cpp
@@ -128,7 +128,8 @@
EXPECT_TRUE(TempFileExists);
::close(FileDescriptor);
- ::remove(TempPath.c_str());
+ ASSERT_FALSE(fs::remove(Twine(TempPath), TempFileExists));
+ EXPECT_TRUE(TempFileExists);
ASSERT_FALSE(fs::exists(Twine(TempPath), TempFileExists));
EXPECT_FALSE(TempFileExists);