Tests: Rename config symlink creation function

"symlink A to B" is confusing; it is ambiguous (at leaset to me)
whether it means A -> B or B -> A.

And I'm about to introduce a function that does the reverse,
and also one that makes a relative rather than full path link.

So rename this function.
This commit is contained in:
Ian Jackson 2024-04-24 10:00:26 +01:00
parent b89b81a6c7
commit 13be0cfa8b
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ fn symlink_file(target: &Path, link: &Path) -> io::Result<()> {
os::windows::fs::symlink_file(target, link)
}
fn symlink_config_to_config_toml() {
fn make_config_symlink_to_config_toml_absolute() {
let toml_path = paths::root().join(".cargo/config.toml");
let symlink_path = paths::root().join(".cargo/config");
t!(symlink_file(&toml_path, &symlink_path));
@ -298,7 +298,7 @@ f1 = 1
",
);
symlink_config_to_config_toml();
make_config_symlink_to_config_toml_absolute();
let gctx = new_gctx();