Skip to content

Commit 13be0cf

Browse files
committed
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.
1 parent b89b81a commit 13be0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ fn symlink_file(target: &Path, link: &Path) -> io::Result<()> {
184184
os::windows::fs::symlink_file(target, link)
185185
}
186186

187-
fn symlink_config_to_config_toml() {
187+
fn make_config_symlink_to_config_toml_absolute() {
188188
let toml_path = paths::root().join(".cargo/config.toml");
189189
let symlink_path = paths::root().join(".cargo/config");
190190
t!(symlink_file(&toml_path, &symlink_path));
@@ -298,7 +298,7 @@ f1 = 1
298298
",
299299
);
300300

301-
symlink_config_to_config_toml();
301+
make_config_symlink_to_config_toml_absolute();
302302

303303
let gctx = new_gctx();
304304

0 commit comments

Comments
 (0)