[Lldb-commits] [PATCH] D68293: [android/process list] support showing process arguments
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 15 04:21:41 PDT 2019
labath added a comment.
In D68293#1708863 <https://reviews.llvm.org/D68293#1708863>, @wallace wrote:
> address comments
>
> Btw, @labath, could you point me to a example of a full end to end test like the attach one you mention?
> I haven't been able to find it :(
I think you can use TestProcessAttach.py as a starting point. If you look at the test_attach_to_process_by_id function, all it does is launch a process, and then immediately attaches to it.
So, what could your test do, is also call `self.spawnSubprocess`, but also pass it some arguments. Then, instead of attaching, you'd run "platform process list" and verify that the process (and its arguments) are there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68293/new/
https://reviews.llvm.org/D68293
More information about the lldb-commits
mailing list