forked from OSchip/llvm-project
25 lines
1.4 KiB
Plaintext
25 lines
1.4 KiB
Plaintext
# Check that errors are propagated to the driver.
|
|
#
|
|
# RUN: not %lldb --capture --capture-path %t/bogus/bogus 2>&1 | FileCheck %s --check-prefix INVALID-CAPTURE
|
|
#
|
|
# INVALID-CAPTURE: unable to create reproducer directory
|
|
|
|
# Check that all option combination work as expected.
|
|
#
|
|
# RUN: %lldb --capture --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE
|
|
# RUN: %lldb --capture -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE
|
|
# RUN: %lldb --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix WARNING --check-prefix STATUS-CAPTURE --check-prefix NOAUTOGEN
|
|
# RUN: %lldb --capture-path %t.repro -b -o 'reproducer status' --reproducer-generate-on-exit 2>&1 | FileCheck %s --check-prefix WARNING2
|
|
#
|
|
# NO-WARNING-NOT: warning: -capture-path specified without -capture
|
|
# WARNING: warning: -capture-path specified without -capture
|
|
# WARNING2: warning: -reproducer-generate-on-exit specified without -capture
|
|
# STATUS-CAPTURE: Reproducer is in capture mode.
|
|
# NOAUTOGEN-NOT: Auto generate
|
|
|
|
# Check auto generate.
|
|
# RUN: rm -rf %t.repro
|
|
# 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
|
|
# RUN: cat %t.repro/index.yaml
|
|
# AUTOGEN: Auto generate: on
|