[lldb/Test] Don't leak forked processes on Darwin
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 May 2020 20:56:44 +0000 (13:56 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 29 May 2020 20:58:12 +0000 (13:58 -0700)
commit8d8f8b353175b50dfdb1e2d5f3c0ada0a4ad25ed
tree7add28f2be72a53a46387686465d19434c0dc039
parentaf852d6f3638fead78af9048503a67cf7b308eb6
[lldb/Test] Don't leak forked processes on Darwin

We are leaking forked processes on macOS because the cleanup function
was checking the existence of /proc/pid which does not exist on macOS.
I've changed the code to be platform agnostic.
lldb/packages/Python/lldbsuite/test/lldbtest.py