[Lldb-commits] [lldb] [lldb] Fix 'session save' command on Windows (PR #93833)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu May 30 08:58:37 PDT 2024
================
@@ -61,8 +61,14 @@ def test_session_save(self):
self.assertFalse(res.Succeeded())
raw += self.raw_transcript_builder(cmd, res)
- tf = tempfile.NamedTemporaryFile()
- output_file = tf.name
+ fd, output_file = tempfile.mkstemp()
----------------
labath wrote:
I'd just put the file into the build directory of the test (`self.getBuildArtifact("my_session")`). Then you don't need to worry about cleanups or collisions, as that directory is nuked before running the test.
https://github.com/llvm/llvm-project/pull/93833
More information about the lldb-commits
mailing list