1
1
mirror of https://github.com/Byron/gitoxide synced 2025-10-06 01:52:40 +02:00

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`.
This commit is contained in:
Eliah Kagan
2025-03-09 08:15:36 +00:00
parent b26c2a2205
commit 35627b5146

View File

@@ -89,16 +89,16 @@ mod interpolate {
Ok(())
}
#[cfg(windows)]
#[cfg(any(target_os = "windows", target_os = "android"))]
#[test]
fn tilde_with_given_user_is_unsupported_on_windows() {
fn tilde_with_given_user_is_unsupported_on_windows_and_android() {
assert!(matches!(
interpolate_without_context("~baz/foo/bar"),
Err(gix_config_value::path::interpolate::Error::UserInterpolationUnsupported)
));
}
#[cfg(not(windows))]
#[cfg(not(any(target_os = "windows", target_os = "android")))]
#[test]
fn tilde_with_given_user() -> crate::Result {
let home = std::env::current_dir()?;