1# This tests that a reproducer is generated when LLDB crashes. 2 3# Start clean. 4# RUN: rm -rf %t.repro 5 6# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGSEGV' | FileCheck %s 7# RUN: %lldb -b --capture --capture-path %t.repro -o 'reproducer xcrash -s SIGILL' | FileCheck %s 8 9# CHECK: ******************** 10# CHECK: Crash reproducer for 11# CHECK: Reproducer written to 12# CHECK: ******************** 13 14# RUN: %lldb -b --capture --capture-path %t.repro --reproducer-no-generate-on-signal -o 'reproducer xcrash -s SIGSEGV' | FileCheck %s --check-prefix NOHANDLER 15 16# NOHANDLER-NOT: Crash reproducer 17# NOHANDLER-NOT: Reproducer written 18