diff options
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 750fd13db97..4eee8e923b7 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -1517,6 +1517,7 @@ TEST_F(FileSystemTest, is_local) { bool TempFileIsLocal; ASSERT_NO_ERROR(fs::is_local(FD, TempFileIsLocal)); EXPECT_EQ(TempFileIsLocal, fs::is_local(FD)); + ::close(FD); // Expect that the file and its parent directory are equally local or equally // remote. |