File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rustc-test"
3
- version = " 0.1.0 "
3
+ version = " 0.1.1 "
4
4
authors = [" The Rust Project Developers" ]
5
5
license = " MIT OR Apache-2.0"
6
6
description = " A fork of Rust’s `test` crate that doesn’t require unstable language features."
Original file line number Diff line number Diff line change @@ -404,7 +404,8 @@ pub fn parse_opts(args: &[String]) -> Option<OptRes> {
404
404
let bench_benchmarks = matches. opt_present ( "bench" ) ;
405
405
let run_tests = !bench_benchmarks || matches. opt_present ( "test" ) ;
406
406
407
- let mut nocapture = matches. opt_present ( "nocapture" ) ;
407
+ let mut nocapture =
408
+ if cfg ! ( feature = "capture" ) { matches. opt_present ( "nocapture" ) } else { true } ;
408
409
if !nocapture {
409
410
nocapture = env:: var ( "RUST_TEST_NOCAPTURE" ) . is_ok ( ) ;
410
411
}
You can’t perform that action at this time.
0 commit comments