Skip to content

Commit

Permalink
Disable tests that require creation time on musl
Browse files Browse the repository at this point in the history
Creation time will only be supported on the musl target once rust-lang/rust#125692 lands.
  • Loading branch information
JustSoup312 committed Oct 29, 2024
1 parent 7d42082 commit 4f1a390
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()?;
Expand All @@ -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()?;
Expand Down
2 changes: 2 additions & 0 deletions src/filetree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down

0 comments on commit 4f1a390

Please sign in to comment.