summaryrefslogtreecommitdiffstats
path: root/lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
diff options
context:
space:
mode:
authorAlexander Polyakov <polyakov.alx@gmail.com>2018-06-03 15:15:23 +0000
committerAlexander Polyakov <polyakov.alx@gmail.com>2018-06-03 15:15:23 +0000
commitcc92f5038e7c1070e1ab4271d114ea0baade5416 (patch)
tree04aea2a5439be90de8b32b3129349550858bdfc6 /lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
parent1f60e2b41b0b274fccf98e26bbd1eb600af1f167 (diff)
downloadbcm5719-llvm-cc92f5038e7c1070e1ab4271d114ea0baade5416.tar.gz
bcm5719-llvm-cc92f5038e7c1070e1ab4271d114ea0baade5416.zip
[lldb, lldm-mi] Fix hanging of -exec-run command.
Summary: -exec-run command hanged in case of invalid or dummy target. Reviewers: aprantl, stella.stamenova Reviewed By: aprantl Subscribers: ki.stfu, llvm-commits, lldb-commits Differential Revision: https://reviews.llvm.org/D47678 llvm-svn: 333844
Diffstat (limited to 'lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test')
-rw-r--r--lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test b/lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
new file mode 100644
index 00000000000..98dc75f509c
--- /dev/null
+++ b/lldb/lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
@@ -0,0 +1,6 @@
+# RUN: %lldbmi < %s | FileCheck %s
+
+# Test that -exec-run command won't hang in case of wrong name of binary file.
+
+-file-exec-and-symbols name.exe
+# CHECK: ^error,msg="Command 'file-exec-and-symbols'. Target binary 'name.exe' is invalid.
OpenPOWER on IntegriCloud