]> granicus.if.org Git - llvm/commit
[AIX][lit] Don't depend on psutil on AIX
authorDavid Tenty <daltenty@ibm.com>
Wed, 24 Jul 2019 15:04:27 +0000 (15:04 +0000)
committerDavid Tenty <daltenty@ibm.com>
Wed, 24 Jul 2019 15:04:27 +0000 (15:04 +0000)
commitcc5712834e3df416bfb32ba35478ee72c246fbb3
tree722c2fe1b20f8e65d29827cf61709f91d275d0a5
parent1d7873cdea2da780f70b6c3928112ab70c3e15f5
[AIX][lit] Don't depend on psutil on AIX

Summary:
On AIX psutil can run into problems with permissions to read the process
tree, which causes problems for python timeout tests which need to kill off
a test and it's children.

This patch adds a workaround by invoking shell via subprocess and using a
platform specific option to ps to list all the descendant processes so we can
kill them. We add some checks so lit can tell whether timeout tests are
supported with out exposing whether we are utilizing the psutil
implementation or the alternative.

Reviewers: hubert.reinterpretcast, andusy, davide, delcypher

Reviewed By: delcypher

Subscribers: davide, delcypher, christof, lldb-commits, libcxx-commits, llvm-commits

Tags: #lldb, #libc, #llvm

Differential Revision: https://reviews.llvm.org/D64251

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366912 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/LitConfig.py
utils/lit/lit/util.py
utils/lit/tests/googletest-timeout.py
utils/lit/tests/lit.cfg
utils/lit/tests/shtest-timeout.py