[Lldb-commits] [lldb] [lldb-dap] Add stdio redirection (PR #158609)

Walter Erquinigo via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 15 08:42:06 PDT 2025


================
@@ -624,3 +625,23 @@ def test_no_lldbinit_flag(self):
 
             # Verify the initCommands were executed
             self.verify_commands("initCommands", output, initCommands)
+
+    def test_stdio_redirection(self):
+        """
+        Test stdio redirection.
+        """
+        temp_file = tempfile.NamedTemporaryFile().name
----------------
walter-erquinigo wrote:

Use this pattern

```
with tempfile.TemporaryFile() as fp:
  ...
```

that way you don't need to unlink the file manually

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


More information about the lldb-commits mailing list