diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 03:29:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-18 03:29:51 +0000 |
commit | 1c881d9d35a7880d0c102119b29d20ceb2ed1975 (patch) | |
tree | 482451f1e0b4c1aa0454b43d01ae58b526f77dc5 /unittests | |
parent | 1ceefa6aa3fa82f7dda1ac070d133d3b1102bf93 (diff) | |
download | external_llvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.zip external_llvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.tar.gz external_llvm-1c881d9d35a7880d0c102119b29d20ceb2ed1975.tar.bz2 |
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.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index 7a9b8ae..0bbaa2f 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); |