diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-03 12:33:32 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-03 12:33:32 +0000 |
| commit | 23e6bdf1aef8943cea7215789ea63c601facf014 (patch) | |
| tree | 412dc3556636deb572f0dc25c553523e2307636a /llvm/unittests/Support/Path.cpp | |
| parent | 2e3bceafd95ea9865b12bbebde42d6fedddbd97c (diff) | |
| download | bcm5719-llvm-23e6bdf1aef8943cea7215789ea63c601facf014.tar.gz bcm5719-llvm-23e6bdf1aef8943cea7215789ea63c601facf014.zip | |
unittests/Support/PathV2: remove(3) requires a terminated string.
llvm-svn: 120803
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
| -rw-r--r-- | llvm/unittests/Support/Path.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 06e8ffd1845..d19bf4a2efc 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -128,11 +128,10 @@ TEST(Support, Path) { 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 |

