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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to