Skip to content

Commit

Permalink
Tests: check that config.toml warning is suppressed with reverse link
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson committed Apr 23, 2024
1 parent 5c31ec3 commit d9cb950
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/testsuite/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,22 @@ fn config_ambiguous_filename_symlink_doesnt_warn_relative() {
});
}

#[cfg(unix)]
#[cargo_test]
fn config_ambiguous_filename_symlink_doesnt_warn_backwards() {
config_ambiguous_filename_symlink_doesnt_warn_general(|| {
let root = paths::root();
t!(fs::rename(
root.join(".cargo/config.toml"),
root.join(".cargo/config")
));
t!(symlink_file(
Path::new("config"),
&root.join(".cargo/config.toml")
));
});
}

#[cargo_test]
fn config_ambiguous_filename() {
write_config_extless(
Expand Down

0 comments on commit d9cb950

Please sign in to comment.