@@ -28,10 +28,10 @@ fn basic() {
28
28
. file (
29
29
"Cargo.toml" ,
30
30
r#"
31
- unstable -features = ["build-std"]
31
+ cargo -features = ["build-std"]
32
32
[package]
33
33
name = "foo"
34
- version = "0.1.0 "
34
+ version = "0.0.1 "
35
35
edition = "2018"
36
36
build-std = ["std"]
37
37
"# ,
@@ -78,21 +78,21 @@ fn basic() {
78
78
)
79
79
. build ( ) ;
80
80
81
- p. cargo ( "check" ) . run ( ) ;
81
+ p. cargo ( "check" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
82
82
p. cargo ( "build" )
83
+ . masquerade_as_nightly_cargo ( )
83
84
// Importantly, this should not say [UPDATING]
84
85
// There have been multiple bugs where every build triggers and update.
85
86
. with_stderr (
86
87
"[COMPILING] foo v0.0.1 [..]\n \
87
88
[FINISHED] dev [..]",
88
89
)
89
90
. run ( ) ;
90
- p. cargo ( "run" ) . run ( ) ;
91
- p. cargo ( "test" ) . run ( ) ;
91
+ p. cargo ( "run" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
92
+ p. cargo ( "test" ) . masquerade_as_nightly_cargo ( ) . run ( ) ;
92
93
93
94
// Check for hack that removes dylibs.
94
95
let deps_dir = Path :: new ( "target" )
95
- . join ( rustc_host ( ) )
96
96
. join ( "debug" )
97
97
. join ( "deps" ) ;
98
98
assert ! ( p. glob( deps_dir. join( "*.rlib" ) ) . count( ) > 0 ) ;
@@ -105,7 +105,7 @@ fn cross_custom() {
105
105
. file (
106
106
"Cargo.toml" ,
107
107
r#"
108
- unstable -features = ["build-std"]
108
+ cargo -features = ["build-std"]
109
109
[package]
110
110
name = "foo"
111
111
version = "0.1.0"
@@ -139,7 +139,9 @@ fn cross_custom() {
139
139
)
140
140
. build ( ) ;
141
141
142
- p. cargo ( "build --target custom-target.json -v" ) . run ( ) ;
142
+ p. cargo ( "build --target custom-target.json -v" )
143
+ . masquerade_as_nightly_cargo ( )
144
+ . run ( ) ;
143
145
}
144
146
145
147
#[ cargo_test( build_std) ]
@@ -148,7 +150,7 @@ fn custom_test_framework() {
148
150
. file (
149
151
"Cargo.toml" ,
150
152
r#"
151
- unstable -features = ["build-std"]
153
+ cargo -features = ["build-std"]
152
154
[package]
153
155
name = "foo"
154
156
version = "0.1.0"
@@ -206,6 +208,7 @@ fn custom_test_framework() {
206
208
let new_path = env:: join_paths ( paths) . unwrap ( ) ;
207
209
208
210
p. cargo ( "test --target target.json --no-run -v" )
211
+ . masquerade_as_nightly_cargo ( )
209
212
. env ( "PATH" , new_path)
210
213
. run ( ) ;
211
214
}
0 commit comments