Skip to content

Commit 3b23a37

Browse files
author
Jon Gjengset
committed
Future-proof tests
1 parent be33339 commit 3b23a37

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/testsuite/cargo_features.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ fn allow_features() {
148148
.masquerade_as_nightly_cargo()
149149
.env("RUSTC_BOOTSTRAP", "1")
150150
.with_stdout("im-a-teapot = true")
151-
.with_stderr("[FINISHED] [..]")
152151
.run();
153152

154153
p.cargo("-Zallow-features=test-dummy-unstable -Zprint-im-a-teapot build")
@@ -203,17 +202,7 @@ fn allow_features_to_rustc() {
203202
.masquerade_as_nightly_cargo()
204203
.env("RUSTC_BOOTSTRAP", "1")
205204
.with_status(101)
206-
.with_stderr_contains(
207-
"\
208-
[COMPILING] a [..]
209-
error[E0725]: the feature `test_2018_feature` is not in the list of allowed features
210-
",
211-
)
212-
.with_stderr_contains(
213-
"\
214-
error: could not compile `a`
215-
",
216-
)
205+
.with_stderr_contains("[..]E0725[..]")
217206
.run();
218207

219208
p.cargo("-Zallow-features=test_2018_feature build")

0 commit comments

Comments
 (0)