Skip to content

Commit eb31d1a

Browse files
committed
Test for sort available binaries when multiple
1 parent 14979f6 commit eb31d1a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/testsuite/required_features.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,11 @@ fn run_default_multiple_required_features() {
11691169
path = "src/foo1.rs"
11701170
required-features = ["a"]
11711171
1172+
[[bin]]
1173+
name = "foo3"
1174+
path = "src/foo3.rs"
1175+
required-features = ["b"]
1176+
11721177
[[bin]]
11731178
name = "foo2"
11741179
path = "src/foo2.rs"
@@ -1177,6 +1182,7 @@ fn run_default_multiple_required_features() {
11771182
)
11781183
.file("src/lib.rs", "")
11791184
.file("src/foo1.rs", "extern crate foo; fn main() {}")
1185+
.file("src/foo3.rs", "extern crate foo; fn main() {}")
11801186
.file("src/foo2.rs", "extern crate foo; fn main() {}")
11811187
.build();
11821188

@@ -1185,7 +1191,7 @@ fn run_default_multiple_required_features() {
11851191
.with_stderr(
11861192
"\
11871193
error: `cargo run` could not determine which binary to run[..]
1188-
available binaries: foo1, foo2",
1194+
available binaries: foo1, foo2, foo3",
11891195
)
11901196
.run();
11911197
}

0 commit comments

Comments
 (0)