[Lldb-commits] [lldb] [lldb][test] Wait for a file before attempting to attach to lldb-server test inferior (PR #162064)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 6 10:33:17 PDT 2025


================
@@ -444,13 +444,20 @@ def launch_process_for_attach(
         if not exe_path:
             exe_path = self.getBuildArtifact("a.out")
 
-        args = []
+        # This file will be created once the inferior has enabled attaching.
+        sync_file_path = lldbutil.append_to_process_working_directory(
----------------
JDevlieghere wrote:

I assume this file gets cleaned up after the test, so it doesn't affect subsequent runs, right? This is a pretty common pattern and quick search doesn't show any manual cleanup elsewhere so I assume this is covered.  

https://github.com/llvm/llvm-project/pull/162064


More information about the lldb-commits mailing list