[test] Report error when inferior test processes exit with a non-zero code
authorPavel Labath <labath@google.com>
Mon, 18 Jul 2016 11:27:19 +0000 (11:27 +0000)
committerPavel Labath <labath@google.com>
Mon, 18 Jul 2016 11:27:19 +0000 (11:27 +0000)
commit52bd8012bd0f440e21ddec0c1d6ed89605adbb3b
treef626b94ea760f45ec8632a988fe0cda5e0d6fa33
parentfff3ad6e828f64360f7dfa19be449af81d4bad6c
[test] Report error when inferior test processes exit with a non-zero code

Summary:
We've run into this problem when the test errored out so early (because it could not connect to
the remote device), that the code in D20193 did not catch the error. This resulted in the test
suite reporting success with 0 tests being run.

This patch makes sure that any non-zero exit code from the inferior process gets reported as an
error. Basically I expand the concept of "exceptional exits", which was previously being used for
signals to cover these cases as well.

Reviewers: tfiala, zturner

Subscribers: lldb-commits

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

llvm-svn: 275782
lldb/packages/Python/lldbsuite/test/dosep.py
lldb/packages/Python/lldbsuite/test/test_runner/process_control.py