187aa9c9eSJonas Devlieghere# REQUIRES: system-darwin
287aa9c9eSJonas Devlieghere
387aa9c9eSJonas Devlieghere# This tests the replaying of GDB remote packets.
487aa9c9eSJonas Devlieghere#
587aa9c9eSJonas Devlieghere# We issue the same commands and ensure the output is identical to the original
687aa9c9eSJonas Devlieghere# process. To ensure we're not actually running the original binary we check
787aa9c9eSJonas Devlieghere# that the string "testing" is not printed.
887aa9c9eSJonas Devlieghere
987aa9c9eSJonas Devlieghere# RUN: rm -rf %t.repro
10*9c739252SPavel Labath# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
1187aa9c9eSJonas Devlieghere# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE
1287aa9c9eSJonas Devlieghere# RUN: rm %t.out
1387aa9c9eSJonas Devlieghere
1487aa9c9eSJonas Devlieghere# CAPTURE: testing
1587aa9c9eSJonas Devlieghere
1687aa9c9eSJonas Devlieghere# CHECK: Process {{.*}} exited
1787aa9c9eSJonas Devlieghere
1887aa9c9eSJonas Devlieghere# CAPTURE: Reproducer is in capture mode.
1987aa9c9eSJonas Devlieghere# CAPTURE: Reproducer written
20