summaryrefslogtreecommitdiffstats
path: root/lldb/lit/Reproducer/TestGDBRemoteRepro.test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-09 17:35:43 +0000
committerAdrian Prantl <aprantl@apple.com>2019-10-09 17:35:43 +0000
commit0115c10328281567391855766fef8fbe57a1d4cc (patch)
treef5c3232c37e50caaf5a2043e22fcebccee668bdd /lldb/lit/Reproducer/TestGDBRemoteRepro.test
parent44e988ab14cb387eddfeacd1493792a6aa6aee81 (diff)
downloadbcm5719-llvm-0115c10328281567391855766fef8fbe57a1d4cc.tar.gz
bcm5719-llvm-0115c10328281567391855766fef8fbe57a1d4cc.zip
Revert [test] Split LLDB tests into API, Shell & Unit
as it appears to have broken check-lldb. This reverts r374184 (git commit 22314179f0660c172514b397060fd8f34b586e82) llvm-svn: 374187
Diffstat (limited to 'lldb/lit/Reproducer/TestGDBRemoteRepro.test')
-rw-r--r--lldb/lit/Reproducer/TestGDBRemoteRepro.test27
1 files changed, 27 insertions, 0 deletions
diff --git a/lldb/lit/Reproducer/TestGDBRemoteRepro.test b/lldb/lit/Reproducer/TestGDBRemoteRepro.test
new file mode 100644
index 00000000000..09e566ffb95
--- /dev/null
+++ b/lldb/lit/Reproducer/TestGDBRemoteRepro.test
@@ -0,0 +1,27 @@
+# UNSUPPORTED: system-windows, system-freebsd
+
+# This tests the replaying of GDB remote packets.
+#
+# We issue the same commands and ensure the output is identical to the original
+# process. To ensure we're not actually running the original binary we check
+# that the string "testing" is not printed.
+
+# RUN: rm -rf %t.repro
+# RUN: %clang %S/Inputs/simple.c -g -o %t.out
+# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE
+# RUN: env FOO=BAR %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY
+
+# CHECK: Breakpoint 1
+# CHECK: Process {{.*}} stopped
+# CHECK: Process {{.*}} launched
+# CHECK: thread {{.*}} stop reason = breakpoint
+# CHECK: frame {{.*}} simple.c
+
+# CAPTURE: testing
+# REPLAY-NOT: testing
+
+# CHECK: Process {{.*}} resuming
+# CHECK: Process {{.*}} exited
+
+# CAPTURE: Reproducer is in capture mode.
+# CAPTURE: Reproducer written
OpenPOWER on IntegriCloud