blob: 530dd8ad398d8cb7b669d34e9d36147c8e1a4e2a [file] [log] [blame]
# This tests that a reproducer is generated when LLDB crashes.
# Start clean.
# RUN: rm -rf %t.repro
# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGSEGV' | FileCheck %s
# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGILL' | FileCheck %s
# CHECK: ********************
# CHECK: Crash reproducer for
# CHECK: Reproducer written to
# CHECK: ********************
# RUN: %lldb -b --capture --capture-path %t.repro --reproducer-no-generate-on-signal -o 'reproducer xcrash -s SIGSEGV' | FileCheck %s --check-prefix NOHANDLER
# NOHANDLER-NOT: Crash reproducer
# NOHANDLER-NOT: Reproducer written