diff options
author | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2024-05-10 22:59:31 +0000 |
---|---|---|
committer | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2024-05-31 17:18:21 +0200 |
commit | c5e417a812d86226b087346cadb05d3aae9fe1d0 (patch) | |
tree | 76da36bbc1d434fdf7d8f8cdd4f5f2bc48c04530 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | fb87e11e7253656ffe99726f45b679e08343bd5f (diff) | |
download | llvm-c5e417a812d86226b087346cadb05d3aae9fe1d0.zip llvm-c5e417a812d86226b087346cadb05d3aae9fe1d0.tar.gz llvm-c5e417a812d86226b087346cadb05d3aae9fe1d0.tar.bz2 |
[lldb] Fix 'session save' command on Windows
1. Use dashes (-) instead of colons (:) as time separator in a session log
file name since Windows doesn't support saving files with names containing
colons.
2. Temporary file creation code is changed in the test:
On Windows, the temporary file should be closed before 'session save'
writes session log to it. NamedTemporaryFile() can preserve the file
after closing it with delete_on_close=False option.
However, this option is only available since Python 3.12. Thus
mkstemp() is used for temporary file creation as the more compatible
option.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
0 files changed, 0 insertions, 0 deletions