mirror of
https://github.com/rust-lang/cargo
synced 2024-09-13 04:51:31 +00:00
Update test for warning for alias shadowing an external subcommand
This commit is contained in:
parent
5bfd345e1d
commit
9f768bbcd8
|
@ -100,14 +100,20 @@ fn default_args_alias() {
|
|||
p.cargo("echo")
|
||||
.env("PATH", &path)
|
||||
.with_status(101)
|
||||
.with_stderr("error: alias echo has unresolvable recursive definition: echo -> echo")
|
||||
.with_stderr("\
|
||||
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
|
||||
error: alias echo has unresolvable recursive definition: echo -> echo
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
||||
p.cargo("test-1")
|
||||
.env("PATH", &path)
|
||||
.with_status(101)
|
||||
.with_stderr(
|
||||
"error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo",
|
||||
.with_stderr("\
|
||||
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
|
||||
error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
||||
|
|
Loading…
Reference in a new issue