mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
c2e2df7f7a
Generally, reproducers are rev-locked to the version of LLDB, so it's valuable to have the LLDB version in the reproducer. For now I just want the information to be present, without enforcing it, but I envision emitting a warning during replay in the future. Differential revision: https://reviews.llvm.org/D63229 llvm-svn: 363225
25 lines
845 B
Plaintext
25 lines
845 B
Plaintext
# REQUIRES: system-darwin
|
|
|
|
# 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/FileCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE
|
|
# RUN: rm %t.out
|
|
# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY
|
|
# RUN: cat %t.repro/version.txt | FileCheck %s --check-prefix VERSION
|
|
|
|
# CAPTURE: testing
|
|
# REPLAY-NOT: testing
|
|
|
|
# CHECK: Process {{.*}} exited
|
|
|
|
# CAPTURE: Reproducer is in capture mode.
|
|
# CAPTURE: Reproducer written
|
|
|
|
# VERSION: lldb version
|