apolyakov created this revision.
apolyakov added reviewers: tatyana-krasnukha, aprantl.
Herald added subscribers: abidh, ki.stfu.
The test suite might hang on some platforms if an lldb-mi
test fails. Adding of -gdb-exit command to a test prevents
it from hanging and hence increase test suite reliability.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D52139
Files:
lit/tools/lldb-mi/breakpoint/break-insert.test
lit/tools/lldb-mi/data/data-info-line.test
lit/tools/lldb-mi/exec/exec-continue.test
lit/tools/lldb-mi/exec/exec-finish.test
lit/tools/lldb-mi/exec/exec-interrupt.test
lit/tools/lldb-mi/exec/exec-next-instruction.test
lit/tools/lldb-mi/exec/exec-next.test
lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
lit/tools/lldb-mi/exec/exec-step-instruction.test
lit/tools/lldb-mi/exec/exec-step.test
lit/tools/lldb-mi/symbol/symbol-list-lines.test
Index: lit/tools/lldb-mi/symbol/symbol-list-lines.test
===================================================================
--- lit/tools/lldb-mi/symbol/symbol-list-lines.test
+++ lit/tools/lldb-mi/symbol/symbol-list-lines.test
@@ -18,3 +18,5 @@
-symbol-list-lines list-lines-helper.c
# CHECK: ^done,lines=[{pc="0x{{[0-9A-Fa-f]+}}",line="1"},{pc="0x{{[0-9A-Fa-f]+}}",line="2"},{pc="0x{{[0-9A-Fa-f]+}}",line="3"}{{.*}}]
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-step.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-step.test
+++ lit/tools/lldb-mi/exec/exec-step.test
@@ -28,3 +28,5 @@
# Check that exec-step can step-in in a selected thread.
# CHECK: ^running
# CHECK: *stopped,reason="end-stepping-range"
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-step-instruction.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-step-instruction.test
+++ lit/tools/lldb-mi/exec/exec-step-instruction.test
@@ -28,3 +28,5 @@
# Check exec-step-instruction in a selected thread.
# CHECK: ^running
# CHECK: *stopped,reason="end-stepping-range"
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
+++ lit/tools/lldb-mi/exec/exec-run-wrong-binary.test
@@ -4,3 +4,5 @@
-file-exec-and-symbols name.exe
# CHECK: ^error,msg="Command 'file-exec-and-symbols'. Target binary 'name.exe' is invalid.
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-next.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-next.test
+++ lit/tools/lldb-mi/exec/exec-next.test
@@ -28,3 +28,5 @@
# Check that exec-next can step over in a selected thread.
# CHECK: ^running
# CHECK: *stopped,reason="end-stepping-range"
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-next-instruction.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-next-instruction.test
+++ lit/tools/lldb-mi/exec/exec-next-instruction.test
@@ -28,3 +28,5 @@
# Check exec-next-instruction in a selected thread.
# CHECK: ^running
# CHECK: *stopped,reason="end-stepping-range"
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-interrupt.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-interrupt.test
+++ lit/tools/lldb-mi/exec/exec-interrupt.test
@@ -18,3 +18,5 @@
-exec-interrupt
# CHECK: ^error,msg="Process is not running."
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-finish.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-finish.test
+++ lit/tools/lldb-mi/exec/exec-finish.test
@@ -31,3 +31,5 @@
# Check exec-finish in a selected thread.
# CHECK: ^running
# CHECK: *stopped,reason="end-stepping-range"
+
+-gdb-exit
Index: lit/tools/lldb-mi/exec/exec-continue.test
===================================================================
--- lit/tools/lldb-mi/exec/exec-continue.test
+++ lit/tools/lldb-mi/exec/exec-continue.test
@@ -18,3 +18,5 @@
-exec-continue
# CHECK: ^running
+
+-gdb-exit
Index: lit/tools/lldb-mi/data/data-info-line.test
===================================================================
--- lit/tools/lldb-mi/data/data-info-line.test
+++ lit/tools/lldb-mi/data/data-info-line.test
@@ -34,3 +34,5 @@
-data-info-line data-info-line.c:2
# CHECK: ^done,start="0x{{[0-9a-f]+}}",end="0x{{[0-9a-f]+}}",file="{{.*}}data-info-line.c",line="{{[0-9]+}}"
+
+-gdb-exit
Index: lit/tools/lldb-mi/breakpoint/break-insert.test
===================================================================
--- lit/tools/lldb-mi/breakpoint/break-insert.test
+++ lit/tools/lldb-mi/breakpoint/break-insert.test
@@ -16,3 +16,4 @@
# CHECK: ^running
# CHECK: *stopped,reason="breakpoint-hit"
+-gdb-exit
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits