Skip to content

Commit 35627b5

Browse files
committed
Change interpolate_user tests to cover Android
`interpolate_user()` gives `UserInterpolationUnsupported` on both Windows and Android, which is intentional. But the tests treated Windows as the only platform under which this was the case, thereby failing on Android tests. This may have been obscured by prior difficulties running tests on Android builds of `gix-config-value`.
1 parent b26c2a2 commit 35627b5

File tree

1 file changed

+3
-3
lines changed
  • gix-config-value/tests/value

1 file changed

+3
-3
lines changed

gix-config-value/tests/value/path.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ mod interpolate {
8989
Ok(())
9090
}
9191

92-
#[cfg(windows)]
92+
#[cfg(any(target_os = "windows", target_os = "android"))]
9393
#[test]
94-
fn tilde_with_given_user_is_unsupported_on_windows() {
94+
fn tilde_with_given_user_is_unsupported_on_windows_and_android() {
9595
assert!(matches!(
9696
interpolate_without_context("~baz/foo/bar"),
9797
Err(gix_config_value::path::interpolate::Error::UserInterpolationUnsupported)
9898
));
9999
}
100100

101-
#[cfg(not(windows))]
101+
#[cfg(not(any(target_os = "windows", target_os = "android")))]
102102
#[test]
103103
fn tilde_with_given_user() -> crate::Result {
104104
let home = std::env::current_dir()?;

0 commit comments

Comments
 (0)