File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 1
1
# Check that errors are propagated to the driver.
2
2
#
3
- # RUN: env LLDB_REPRODUCER_DISABLE_CAPTURE=1 not %lldb --capture --capture-path %t/bogus/bogus 2>&1 | FileCheck %s --check-prefix INVALID-CAPTURE
4
- # RUN: env LLDB_REPRODUCER_DISABLE_CAPTURE=1 not %lldb --replay %t/bogus/bogus 2>&1 | FileCheck %s --check-prefix INVALID-REPLAY
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
5
#
6
6
# INVALID-CAPTURE: unable to create reproducer directory
7
7
# INVALID-REPLAY: unable to load reproducer index
8
8
9
9
# Check that all option combination work as expected.
10
10
#
11
- # RUN: env LLDB_REPRODUCER_DISABLE_CAPTURE=1 %lldb --capture --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE
12
- # RUN: env LLDB_REPRODUCER_DISABLE_CAPTURE=1 %lldb --capture -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix NO-WARNING --check-prefix STATUS-CAPTURE
13
- # RUN: env LLDB_REPRODUCER_DISABLE_CAPTURE=1 %lldb --capture-path %t.repro -b -o 'reproducer status' 2>&1 | FileCheck %s --check-prefix WARNING --check-prefix STATUS-CAPTURE
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
14
14
#
15
15
# NO-WARNING-NOT: warning: -capture-path specified without -capture
16
16
# WARNING: warning: -capture-path specified without -capture
Original file line number Diff line number Diff line change @@ -806,17 +806,10 @@ llvm::Optional<int> InitializeReproducer(opt::InputArgList &input_args) {
806
806
}
807
807
return 0 ;
808
808
}
809
-
810
- bool capture = input_args.hasArg (OPT_capture);
811
- auto *capture_path = input_args.getLastArg (OPT_capture_path);
812
-
813
809
// BEGIN SWIFT
814
- if (!getenv (" LLDB_REPRODUCER_DISABLE_CAPTURE" )) {
815
- // Always enable capture unless explicitly disabled by the
816
- // LLDB_REPRODUCER_DISABLE_CAPTURE environment variable.
817
- capture = true ;
818
- }
810
+ bool capture = true ; // input_args.hasArg(OPT_capture);
819
811
// END SWIFT
812
+ auto *capture_path = input_args.getLastArg (OPT_capture_path);
820
813
821
814
if (capture || capture_path) {
822
815
if (capture_path) {
You can’t perform that action at this time.
0 commit comments