[lldb-mi] Fix hanging of target-select-so-path.test
authorAlexander Polyakov <polyakov@synopsys.com>
Mon, 24 Sep 2018 19:10:48 +0000 (19:10 +0000)
committerAlexander Polyakov <polyakov@synopsys.com>
Mon, 24 Sep 2018 19:10:48 +0000 (19:10 +0000)
commit42be321ca8b7efa140bb55dadcecb9a1f70aed97
tree256dd2a855b5c4e5c5a9b328ab22423727f9e2ef
parent6cdab204f098b952dec70cb34d90c482ded9fe13
[lldb-mi] Fix hanging of target-select-so-path.test

Summary:
The target-select-so-path test might hang on
some platforms. The reason of that behavior
was in incorrect usage of Filecheck and lldb-mi
processes. Instead of redirecting lldb-mi's output
to Filecheck, we should run lldb-mi session,
finish the session, collect its output and then pass
it to Filecheck.
Also, this patch adds a timer to the test to prevent
it from hanging in the future.

Reviewers: tatyana-krasnukha, aprantl, teemperor

Reviewed By: tatyana-krasnukha, teemperor

Subscribers: apolyakov, aprantl, teemperor, ki.stfu, abidh, lldb-commits

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

llvm-svn: 342915
lldb/lit/tools/lldb-mi/target/inputs/target-select-so-path.py