summaryrefslogtreecommitdiff
path: root/unittests/Support/LockFileManagerTest.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-10 20:36:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-10 20:36:42 +0000
commit217c714a6779841ae06f420f384b87e12454b1a1 (patch)
treee1f04f8e004152d94b03fea99e9ea66ccd505e72 /unittests/Support/LockFileManagerTest.cpp
parentd91c160b0a330ca95e09acc90764160406ecba85 (diff)
downloadllvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.gz
llvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.bz2
llvm-217c714a6779841ae06f420f384b87e12454b1a1.tar.xz
Remove remove_all. A compiler has no need for recursively deleting a directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support/LockFileManagerTest.cpp')
-rw-r--r--unittests/Support/LockFileManagerTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/LockFileManagerTest.cpp b/unittests/Support/LockFileManagerTest.cpp
index 3c84f4dcfe..1f949a369e 100644
--- a/unittests/Support/LockFileManagerTest.cpp
+++ b/unittests/Support/LockFileManagerTest.cpp
@@ -40,7 +40,8 @@ TEST(LockFileManagerTest, Basic) {
// Now that the lock is out of scope, the file should be gone.
EXPECT_FALSE(sys::fs::exists(StringRef(LockedFile)));
- sys::fs::remove_all(StringRef(TmpDir));
+ EC = sys::fs::remove(StringRef(TmpDir));
+ ASSERT_FALSE(EC);
}
} // end anonymous namespace