File tree 2 files changed +5
-9
lines changed 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5426,11 +5426,9 @@ fn avoid_dev_deps() {
5426
5426
. file ( "src/main.rs" , "fn main() {}" )
5427
5427
. build ( ) ;
5428
5428
5429
- // --bins is needed because of #5134
5430
- assert_that ( p. cargo ( "build" ) . arg ( "--bins" ) , execs ( ) . with_status ( 101 ) ) ;
5429
+ assert_that ( p. cargo ( "build" ) , execs ( ) . with_status ( 101 ) ) ;
5431
5430
assert_that (
5432
5431
p. cargo ( "build" )
5433
- . arg ( "--bins" )
5434
5432
. masquerade_as_nightly_cargo ( )
5435
5433
. arg ( "-Zavoid-dev-deps" ) ,
5436
5434
execs ( ) . with_status ( 0 ) ,
Original file line number Diff line number Diff line change @@ -1222,9 +1222,8 @@ fn dev_dependencies_no_check() {
1222
1222
. file ( "src/main.rs" , "fn main() {}" )
1223
1223
. build ( ) ;
1224
1224
1225
- // --bins is needed because of #5134
1226
- assert_that ( p. cargo ( "build" ) . arg ( "--bins" ) , execs ( ) . with_status ( 101 ) ) ;
1227
- assert_that ( p. cargo ( "install" ) . arg ( "--bins" ) , execs ( ) . with_status ( 0 ) ) ;
1225
+ assert_that ( p. cargo ( "build" ) , execs ( ) . with_status ( 101 ) ) ;
1226
+ assert_that ( p. cargo ( "install" ) , execs ( ) . with_status ( 0 ) ) ;
1228
1227
}
1229
1228
1230
1229
#[ test]
@@ -1256,10 +1255,9 @@ fn dev_dependencies_lock_file_untouched() {
1256
1255
. file ( "a/src/lib.rs" , "" )
1257
1256
. build ( ) ;
1258
1257
1259
- // --bins is needed because of #5134
1260
- assert_that ( p. cargo ( "build" ) . arg ( "--bins" ) , execs ( ) . with_status ( 0 ) ) ;
1258
+ assert_that ( p. cargo ( "build" ) , execs ( ) . with_status ( 0 ) ) ;
1261
1259
let lock = p. read_lockfile ( ) ;
1262
- assert_that ( p. cargo ( "install" ) . arg ( "--bins" ) , execs ( ) . with_status ( 0 ) ) ;
1260
+ assert_that ( p. cargo ( "install" ) , execs ( ) . with_status ( 0 ) ) ;
1263
1261
let lock2 = p. read_lockfile ( ) ;
1264
1262
assert ! ( lock == lock2, "different lockfiles" ) ;
1265
1263
}
You can’t perform that action at this time.
0 commit comments