From 4f1a39069adf62b42a901ce6d4b45d958c996374 Mon Sep 17 00:00:00 2001 From: Aster Boese Date: Mon, 28 Oct 2024 20:39:02 -0400 Subject: [PATCH] Disable tests that require creation time on musl Creation time will only be supported on the musl target once https://github.com/rust-lang/rust/pull/125692 lands. --- src/coreos.rs | 6 ++++++ src/filetree.rs | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/coreos.rs b/src/coreos.rs index 9977acef..8f7aa8d7 100644 --- a/src/coreos.rs +++ b/src/coreos.rs @@ -56,6 +56,8 @@ mod test { "ostree-commit": "b2ea6159d6274e1bbbb49aa0ef093eda5d53a75c8a793dbe184f760ed64dc862" }"##; + // Waiting on https://github.com/rust-lang/rust/pull/125692 + #[cfg(not(target_env = "musl"))] #[test] fn test_parse_from_root_empty() -> Result<()> { // Verify we're a no-op in an empty root @@ -65,6 +67,8 @@ mod test { Ok(()) } + // Waiting on https://github.com/rust-lang/rust/pull/125692 + #[cfg(not(target_env = "musl"))] #[test] fn test_parse_from_root() -> Result<()> { let root: &tempfile::TempDir = &tempfile::tempdir()?; @@ -77,6 +81,8 @@ mod test { Ok(()) } + // Waiting on https://github.com/rust-lang/rust/pull/125692 + #[cfg(not(target_env = "musl"))] #[test] fn test_parse_from_root_linked() -> Result<()> { let root: &tempfile::TempDir = &tempfile::tempdir()?; diff --git a/src/filetree.rs b/src/filetree.rs index cf10f8c3..0916d46e 100644 --- a/src/filetree.rs +++ b/src/filetree.rs @@ -624,6 +624,8 @@ mod tests { assert!(!dp.exists(".btmp.b")?); Ok(()) } + // Waiting on https://github.com/rust-lang/rust/pull/125692 + #[cfg(not(target_env = "musl"))] #[test] fn test_apply_with_file() -> Result<()> { let tmpd = tempfile::tempdir()?;