[llvm-commits] [llvm] r120803 - /llvm/trunk/unittests/Support/Path.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Dec 3 04:33:32 PST 2010
Author: d0k
Date: Fri Dec 3 06:33:32 2010
New Revision: 120803
URL: http://llvm.org/viewvc/llvm-project?rev=120803&view=rev
Log:
unittests/Support/PathV2: remove(3) requires a terminated string.
Modified:
llvm/trunk/unittests/Support/Path.cpp
Modified: llvm/trunk/unittests/Support/Path.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Path.cpp?rev=120803&r1=120802&r2=120803&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Path.cpp (original)
+++ llvm/trunk/unittests/Support/Path.cpp Fri Dec 3 06:33:32 2010
@@ -128,11 +128,10 @@
EXPECT_TRUE(TempFileExists);
::close(FileDescriptor);
- ::remove(TempPath.begin());
+ ::remove(TempPath.c_str());
ASSERT_FALSE(fs::exists(Twine(TempPath), TempFileExists));
- // FIXME: This is returning true on some systems...
- // EXPECT_FALSE(TempFileExists);
+ EXPECT_FALSE(TempFileExists);
}
} // anonymous namespace
More information about the llvm-commits
mailing list