summaryrefslogtreecommitdiffstats
path: root/lldb/lit/Reproducer/TestSynchronous.test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/lit/Reproducer/TestSynchronous.test')
-rw-r--r--lldb/lit/Reproducer/TestSynchronous.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/lit/Reproducer/TestSynchronous.test b/lldb/lit/Reproducer/TestSynchronous.test
new file mode 100644
index 00000000000..a2ff189bfc7
--- /dev/null
+++ b/lldb/lit/Reproducer/TestSynchronous.test
@@ -0,0 +1,13 @@
+# Ensure that replay happens in synchronous mode.
+
+# RUN: rm -rf %t.repro
+# RUN: %lldb -x -b --capture --capture-path %t.repro -o 'script lldb.debugger.SetAsync(True)' -o 'script lldb.debugger.GetAsync()' -o 'reproducer generate' | FileCheck %s --check-prefix CAPTURE
+# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix REPLAY
+
+# CAPTURE: script lldb.debugger.SetAsync(True)
+# CAPTURE-NEXT: script lldb.debugger.GetAsync()
+# CAPTURE-NEXT: True
+
+# REPLAY: script lldb.debugger.SetAsync(True)
+# REPLAY-NEXT: script lldb.debugger.GetAsync()
+# REPLAY-NEXT: False
OpenPOWER on IntegriCloud