File tree 8 files changed +5
-29
lines changed
8 files changed +5
-29
lines changed Original file line number Diff line number Diff line change @@ -4628,13 +4628,11 @@ Did you mean `ex1`?",
4628
4628
. run ( ) ;
4629
4629
4630
4630
ws. cargo ( "build -v --lib" )
4631
- . with_status ( 0 )
4632
4631
. with_stderr_contains ( "[RUNNING] `rustc [..]a/src/lib.rs[..]" )
4633
4632
. with_stderr_contains ( "[RUNNING] `rustc [..]b/src/lib.rs[..]" )
4634
4633
. run ( ) ;
4635
4634
4636
4635
ws. cargo ( "build -v --example ex1" )
4637
- . with_status ( 0 )
4638
4636
. with_stderr_contains ( "[RUNNING] `rustc [..]a/examples/ex1.rs[..]" )
4639
4637
. run ( ) ;
4640
4638
}
Original file line number Diff line number Diff line change @@ -713,7 +713,6 @@ fn workspace_different_locations() {
713
713
p. cargo ( "build" ) . cwd ( p. root ( ) . join ( "foo" ) ) . run ( ) ;
714
714
p. cargo ( "build" )
715
715
. cwd ( p. root ( ) . join ( "bar" ) )
716
- . with_status ( 0 )
717
716
. with_stderr (
718
717
"\
719
718
[COMPILING] bar [..]
Original file line number Diff line number Diff line change @@ -32,8 +32,5 @@ fn edition_works_for_build_script() {
32
32
. file ( "a/src/lib.rs" , "pub fn foo() {}" )
33
33
. build ( ) ;
34
34
35
- p. cargo ( "build -v" )
36
- . masquerade_as_nightly_cargo ( )
37
- . with_status ( 0 )
38
- . run ( ) ;
35
+ p. cargo ( "build -v" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
39
36
}
Original file line number Diff line number Diff line change @@ -943,7 +943,6 @@ fn fix_idioms() {
943
943
" ;
944
944
p. cargo ( "fix --edition-idioms --allow-no-vcs" )
945
945
. with_stderr ( stderr)
946
- . with_status ( 0 )
947
946
. run ( ) ;
948
947
949
948
assert ! ( p. read_file( "src/lib.rs" ) . contains( "Box<dyn Any>" ) ) ;
@@ -955,7 +954,6 @@ fn idioms_2015_ok() {
955
954
956
955
p. cargo ( "fix --edition-idioms --allow-no-vcs" )
957
956
. masquerade_as_nightly_cargo ( )
958
- . with_status ( 0 )
959
957
. run ( ) ;
960
958
}
961
959
Original file line number Diff line number Diff line change @@ -1263,10 +1263,7 @@ fn package_with_select_features() {
1263
1263
)
1264
1264
. build ( ) ;
1265
1265
1266
- p. cargo ( "package --features required" )
1267
- . masquerade_as_nightly_cargo ( )
1268
- . with_status ( 0 )
1269
- . run ( ) ;
1266
+ p. cargo ( "package --features required" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
1270
1267
}
1271
1268
1272
1269
#[ test]
@@ -1295,10 +1292,7 @@ fn package_with_all_features() {
1295
1292
)
1296
1293
. build ( ) ;
1297
1294
1298
- p. cargo ( "package --all-features" )
1299
- . masquerade_as_nightly_cargo ( )
1300
- . with_status ( 0 )
1301
- . run ( ) ;
1295
+ p. cargo ( "package --all-features" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
1302
1296
}
1303
1297
1304
1298
#[ test]
Original file line number Diff line number Diff line change @@ -635,7 +635,6 @@ required by package `foo v0.0.1 ([..])`
635
635
. run ( ) ;
636
636
637
637
p. cargo ( "update -p baz" )
638
- . with_status ( 0 )
639
638
. with_stderr_contains (
640
639
"\
641
640
[UPDATING] `[..]` index
Original file line number Diff line number Diff line change @@ -1098,10 +1098,7 @@ fn run_workspace() {
1098
1098
available binaries: a, b" ,
1099
1099
)
1100
1100
. run ( ) ;
1101
- p. cargo ( "run --bin a" )
1102
- . with_status ( 0 )
1103
- . with_stdout ( "run-a" )
1104
- . run ( ) ;
1101
+ p. cargo ( "run --bin a" ) . with_stdout ( "run-a" ) . run ( ) ;
1105
1102
}
1106
1103
1107
1104
#[ test]
@@ -1130,11 +1127,7 @@ fn default_run_workspace() {
1130
1127
. file ( "b/src/main.rs" , r#"fn main() {println!("run-b");}"# )
1131
1128
. build ( ) ;
1132
1129
1133
- p. cargo ( "run" )
1134
- . masquerade_as_nightly_cargo ( )
1135
- . with_status ( 0 )
1136
- . with_stdout ( "run-a" )
1137
- . run ( ) ;
1130
+ p. cargo ( "run" ) . masquerade_as_nightly_cargo ( ) . with_stdout ( "run-a" ) . run ( ) ;
1138
1131
}
1139
1132
1140
1133
#[ test]
Original file line number Diff line number Diff line change @@ -2074,7 +2074,6 @@ fn ws_warn_unused() {
2074
2074
. file ( "a/src/lib.rs" , "" )
2075
2075
. build ( ) ;
2076
2076
p. cargo ( "check" )
2077
- . with_status ( 0 )
2078
2077
. with_stderr_contains ( & format ! (
2079
2078
"\
2080
2079
[WARNING] {} for the non root package will be ignored, specify {} at the workspace root:
@@ -2111,7 +2110,6 @@ fn ws_warn_path() {
2111
2110
. build ( ) ;
2112
2111
2113
2112
p. cargo ( "check" )
2114
- . with_status ( 0 )
2115
2113
. with_stderr_contains ( "[WARNING] [..]/foo/a/Cargo.toml: the cargo feature `edition`[..]" )
2116
2114
. run ( ) ;
2117
2115
}
You can’t perform that action at this time.
0 commit comments