Skip to content

Commit 9f768bb

Browse files
committed
Update test for warning for alias shadowing an external subcommand
1 parent 5bfd345 commit 9f768bb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/testsuite/cargo_alias_config.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,20 @@ fn default_args_alias() {
100100
p.cargo("echo")
101101
.env("PATH", &path)
102102
.with_status(101)
103-
.with_stderr("error: alias echo has unresolvable recursive definition: echo -> echo")
103+
.with_stderr("\
104+
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
105+
error: alias echo has unresolvable recursive definition: echo -> echo
106+
",
107+
)
104108
.run();
105109

106110
p.cargo("test-1")
107111
.env("PATH", &path)
108112
.with_status(101)
109-
.with_stderr(
110-
"error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo",
113+
.with_stderr("\
114+
warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo`
115+
error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo
116+
",
111117
)
112118
.run();
113119

0 commit comments

Comments
 (0)