summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-18 03:29:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-18 03:29:51 +0000
commit1c881d9d35a7880d0c102119b29d20ceb2ed1975 (patch)
tree482451f1e0b4c1aa0454b43d01ae58b526f77dc5 /unittests
parent1ceefa6aa3fa82f7dda1ac070d133d3b1102bf93 (diff)
downloadllvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.tar.gz
llvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.tar.bz2
llvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.tar.xz
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/Path.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp
index 7a9b8ae834..0bbaa2fe27 100644
--- a/unittests/Support/Path.cpp
+++ b/unittests/Support/Path.cpp
@@ -219,14 +219,8 @@ TEST_F(FileSystemTest, TempFiles) {
ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B));
EXPECT_FALSE(fs::equivalent(A, B));
- // Try to copy the first to the second.
- EXPECT_EQ(
- fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists);
-
::close(FD2);
- // Try again with the proper options.
- ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2),
- fs::copy_option::overwrite_if_exists));
+
// Remove Temp2.
ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists));
EXPECT_TRUE(TempFileExists);