Skip to content

Commit d9cb950

Browse files
committed
Tests: check that config.toml warning is suppressed with reverse link
1 parent 5c31ec3 commit d9cb950

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/testsuite/config.rs

+16
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,22 @@ fn config_ambiguous_filename_symlink_doesnt_warn_relative() {
326326
});
327327
}
328328

329+
#[cfg(unix)]
330+
#[cargo_test]
331+
fn config_ambiguous_filename_symlink_doesnt_warn_backwards() {
332+
config_ambiguous_filename_symlink_doesnt_warn_general(|| {
333+
let root = paths::root();
334+
t!(fs::rename(
335+
root.join(".cargo/config.toml"),
336+
root.join(".cargo/config")
337+
));
338+
t!(symlink_file(
339+
Path::new("config"),
340+
&root.join(".cargo/config.toml")
341+
));
342+
});
343+
}
344+
329345
#[cargo_test]
330346
fn config_ambiguous_filename() {
331347
write_config_extless(

0 commit comments

Comments
 (0)