[Lldb-commits] [lldb] 2bbdeee - [lldb][test] PlatformDarwinTest.cpp: clean up directories in TearDown
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 10 04:16:15 PDT 2026
Author: Michael Buch
Date: 2026-03-10T11:15:54Z
New Revision: 2bbdeeef7c7a20c3b8cfbecdd0fdf307ddc40935
URL: https://github.com/llvm/llvm-project/commit/2bbdeeef7c7a20c3b8cfbecdd0fdf307ddc40935
DIFF: https://github.com/llvm/llvm-project/commit/2bbdeeef7c7a20c3b8cfbecdd0fdf307ddc40935.diff
LOG: [lldb][test] PlatformDarwinTest.cpp: clean up directories in TearDown
This wasn't causing any failures I'm aware of but for test hygenie remove all the temporary directories we create.
Added:
Modified:
lldb/unittests/Platform/PlatformDarwinTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Platform/PlatformDarwinTest.cpp b/lldb/unittests/Platform/PlatformDarwinTest.cpp
index 6e1371e3d92f2..48836ad89b14d 100644
--- a/lldb/unittests/Platform/PlatformDarwinTest.cpp
+++ b/lldb/unittests/Platform/PlatformDarwinTest.cpp
@@ -117,6 +117,10 @@ struct PlatformDarwinLocateTest : public testing::Test {
<< "Failed to create test dSYM Python directory.";
};
+ void TearDown() override {
+ ASSERT_FALSE(llvm::sys::fs::remove_directories(m_tmp_root_dir));
+ }
+
DebuggerSP m_debugger_sp;
PlatformSP m_platform_sp;
TargetSP m_target_sp;
More information about the lldb-commits
mailing list