Skip to content

Commit 0038a81

Browse files
committed
add windows config test for config_symlink_home_no_duplicate_load
1 parent de20b86 commit 0038a81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testsuite/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2596,8 +2596,13 @@ fn config_symlink_home_no_duplicate_load() {
25962596
// already in the config search path, the config file is not loaded twice.
25972597

25982598
use cargo_test_support::basic_manifest;
2599+
2600+
#[cfg(unix)]
25992601
use std::os::unix::fs::symlink;
26002602

2603+
#[cfg(windows)]
2604+
use std::os::windows::fs::symlink_dir as symlink;
2605+
26012606
let p = project()
26022607
.file("Cargo.toml", &basic_manifest("foo", "0.1.0"))
26032608
.file("src/lib.rs", "")

0 commit comments

Comments
 (0)