1# Check that errors are propagated to the driver. 2# 3# RUN: not %lldb --capture --capture-path %t/bogus/bogus 2>&1 | FileCheck %s --check-prefix INVALID-CAPTURE 4# RUN: not %lldb --replay %t/bogus/bogus 2>&1 | FileCheck %s --check-prefix INVALID-REPLAY 5# 6# INVALID-CAPTURE: unable to create reproducer directory 7# INVALID-REPLAY: unable to load reproducer index 8 9# Check that all option combination work as expected. 10# 11# RUN: %lldb --capture --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE 12# RUN: %lldb --capture -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE 13# RUN: %lldb --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix WARNING --check-prefix STATUS-CAPTURE --check-prefix NOAUTOGEN 14# RUN: %lldb --capture-path %t.repro -b -o 'reproducer status' --reproducer-generate-on-exit 2>&1 | FileCheck %s --check-prefix WARNING2 15# 16# NO-WARNING-NOT: warning: -capture-path specified without -capture 17# WARNING: warning: -capture-path specified without -capture 18# WARNING2: warning: -reproducer-generate-on-exit specified without -capture 19# STATUS-CAPTURE: Reproducer is in capture mode. 20# NOAUTOGEN-NOT: Auto generate 21 22# Check auto generate. 23# RUN: rm -rf %t.repro 24# RUN: %lldb --capture --capture-path %t.repro -b --reproducer-generate-on-exit -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix AUTOGEN 25# RUN: cat %t.repro/index.yaml 26# AUTOGEN: Auto generate: on 27