Skip to content

Commit 7a13864

Browse files
committed
test: add a cannot find case
Signed-off-by: hi-rustin <[email protected]>
1 parent 240020d commit 7a13864

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testsuite/run.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,4 +1606,9 @@ fn run_binary_with_same_name_as_dependency() {
16061606
p.cargo("run").run();
16071607
p.cargo("check -p [email protected]").run();
16081608
p.cargo("run -p [email protected]").run();
1609+
p.cargo("run -p [email protected]").run();
1610+
p.cargo("run -p [email protected]")
1611+
.with_status(101)
1612+
.with_stderr("[ERROR] package(s) `[email protected]` not found in workspace `[..]`")
1613+
.run();
16091614
}

0 commit comments

Comments
 (0)