mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
unittests/Support/PathV2: remove(3) requires a terminated string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
481d402ab0
commit
6d6d16a5fc
@ -128,11 +128,10 @@ TEST(Support, Path) {
|
|||||||
EXPECT_TRUE(TempFileExists);
|
EXPECT_TRUE(TempFileExists);
|
||||||
|
|
||||||
::close(FileDescriptor);
|
::close(FileDescriptor);
|
||||||
::remove(TempPath.begin());
|
::remove(TempPath.c_str());
|
||||||
|
|
||||||
ASSERT_FALSE(fs::exists(Twine(TempPath), TempFileExists));
|
ASSERT_FALSE(fs::exists(Twine(TempPath), TempFileExists));
|
||||||
// FIXME: This is returning true on some systems...
|
EXPECT_FALSE(TempFileExists);
|
||||||
// EXPECT_FALSE(TempFileExists);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user