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