diff options
Diffstat (limited to 'unittests/Support/Path.cpp')
-rw-r--r-- | unittests/Support/Path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Support/Path.cpp b/unittests/Support/Path.cpp index d19bf4a2ef..40e62811d0 100644 --- a/unittests/Support/Path.cpp +++ b/unittests/Support/Path.cpp @@ -128,7 +128,8 @@ TEST(Support, Path) { EXPECT_TRUE(TempFileExists); ::close(FileDescriptor); - ::remove(TempPath.c_str()); + ASSERT_FALSE(fs::remove(Twine(TempPath), TempFileExists)); + EXPECT_TRUE(TempFileExists); ASSERT_FALSE(fs::exists(Twine(TempPath), TempFileExists)); EXPECT_FALSE(TempFileExists); |