Skip to content

Commit

Permalink
Merge pull request coreos#759 from JustSoup312/musl-tests
Browse files Browse the repository at this point in the history
Disable tests that require creation time on musl
  • Loading branch information
cgwalters authored Nov 6, 2024
2 parents 0aedf55 + 4f1a390 commit 493c95f
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 493c95f

Please sign in to comment.