diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 17:53:43 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-03 17:53:43 +0000 |
commit | 106aa731bf86c632a6362497742c6df7bce61a07 (patch) | |
tree | 8bd87c4f59df5d60f9f498a68b66d6a5e0fd63a4 /unittests/Support | |
parent | 998b4709cba317f78127544cf5ae80121b6ad039 (diff) | |
download | external_llvm-106aa731bf86c632a6362497742c6df7bce61a07.zip external_llvm-106aa731bf86c632a6362497742c6df7bce61a07.tar.gz external_llvm-106aa731bf86c632a6362497742c6df7bce61a07.tar.bz2 |
Support/FileSystem: Add remove implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r-- | unittests/Support/Path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index d19bf4a..40e6281 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -128,7 +128,8 @@ TEST(Support, Path) { 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); |