aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2021-04-01 15:02:36 +0100
committerThomas Preud'homme <thomasp@graphcore.ai>2021-04-20 12:09:30 +0100
commitd618c6e8ceb7e3f08631cd2e6669f9479cdca45d (patch)
treed0958daa2f10bbb11687ed24e1ed801d6422598d /flang/lib/Frontend/CompilerInvocation.cpp
parent3d4a6037ff462bc3e41e4924c603f0e3dfc2c06a (diff)
downloadllvm-d618c6e8ceb7e3f08631cd2e6669f9479cdca45d.zip
llvm-d618c6e8ceb7e3f08631cd2e6669f9479cdca45d.tar.gz
llvm-d618c6e8ceb7e3f08631cd2e6669f9479cdca45d.tar.bz2
[lit, test] Fix test cancellation feature detection
A lit feature guards tests for the lit timeout functionality because on most system it depends on the availability of the psutil Python module. However, that feature is defined based on the ability of the testing lit to cancel test, which does not necessarily apply to the ability of the tested lit. In particular, RUN commands have a cleared PYTHONPATH and user site packages are disabled. In the case where psutil is found by the testing lit from one of those two source of python path, the tested lit would not be able to find it, causing timeout tests to fail. This commit fixes the issue by testing the ability to cancel tests in the RUN command environment. Reviewed By: yln Differential Revision: https://reviews.llvm.org/D99728
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions