[all-commits] [llvm/llvm-project] f7c36d: [lldb] Fix API test for file redirection to existi...
Wanyi via All-commits
all-commits at lists.llvm.org
Wed Oct 30 14:01:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f7c36d2f88e05a1747fa7916ad2fefdd9d459a55
https://github.com/llvm/llvm-project/commit/f7c36d2f88e05a1747fa7916ad2fefdd9d459a55
Author: Wanyi <kusmour at gmail.com>
Date: 2024-10-30 (Wed, 30 Oct 2024)
Changed paths:
M lldb/test/API/python_api/process/io/TestProcessIO.py
Log Message:
-----------
[lldb] Fix API test for file redirection to existing files (#114119)
API test failed for remote platform in
[#112657](https://github.com/llvm/llvm-project/pull/112657)
Previously when putting files onto remote platform, I used `platform
file write -d <data>` which actually required a `platform file open
<path>` first in order to obtain a file descriptor.
eg. in file
[TestGDBRemotePlatformFile.py](https://github.com/llvm/llvm-project/blob/94e7d9c0bfe517507ea08b00fb00c32fb2837a82/lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py#L24-L32)
To fix this, use the `platform put-file` method, which is used in the
`redirect_stdin` from this test already.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list