1# REQUIRES: system-darwin 2 3# This tests the replaying of GDB remote packets. 4# 5# We issue the same commands and ensure the output is identical to the original 6# process. To ensure we're not actually running the original binary we check 7# that the string "testing" is not printed. 8 9# RUN: rm -rf %t.repro 10# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out 11# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE 12# RUN: rm %t.out 13# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY 14# RUN: cat %t.repro/version.txt | FileCheck %s --check-prefix VERSION 15 16# CAPTURE: testing 17# REPLAY-NOT: testing 18 19# CHECK: Process {{.*}} exited 20 21# CAPTURE: Reproducer is in capture mode. 22# CAPTURE: Reproducer written 23 24# VERSION: lldb version 25