Skip to content

Commit 90c0954

Browse files
committed
cfg-guard unix-only path tests in bough-cli config
1 parent 2f6842a commit 90c0954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bough-cli/src/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,14 @@ cmd = "echo test"
974974
}
975975

976976
#[test]
977+
#[cfg(unix)]
977978
fn resolve_root_path_with_absolute_config_dir() {
978979
let result = resolve_root_path(std::path::Path::new("/absolute/config"), "..");
979980
assert_eq!(result, std::path::PathBuf::from("/absolute"));
980981
}
981982

982983
#[test]
984+
#[cfg(unix)]
983985
fn resolve_root_path_with_absolute_root() {
984986
let result = resolve_root_path(std::path::Path::new("relative"), "/absolute/root");
985987
assert_eq!(result, std::path::PathBuf::from("/absolute/root"));

0 commit comments

Comments
 (0)