Skip to content

Commit

Permalink
fix windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Dec 17, 2024
1 parent 97dd6a9 commit e7d708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsc_lib/src/functions/system_root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod tests {
let result = parser.parse_and_execute("[systemRoot()]", &Context::new()).unwrap();
// on windows, the default is SYSTEMDRIVE env var
#[cfg(target_os = "windows")]
assert_eq!(result, std::env::var("SYSTEMDRIVE").unwrap());
assert_eq!(result, format!("{}\\", std::env::var("SYSTEMDRIVE").unwrap()));
// on linux/macOS, the default is /
#[cfg(not(target_os = "windows"))]
assert_eq!(result, "/");
Expand Down

0 comments on commit e7d708d

Please sign in to comment.