Skip to content

Commit 6004c59

Browse files
committed
Fix check to skip corrupt test files to account for Windows paths
1 parent 7245b46 commit 6004c59

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mp4parse/tests/public.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,13 @@ fn public_avif_read_samples() {
659659
eprintln!("Skipping {:?}", path);
660660
continue; // Skip directories, ReadMe.txt, etc.
661661
}
662-
if AVIF_CORRUPT_IMAGES.contains(&path.to_str().unwrap()) {
662+
if AVIF_CORRUPT_IMAGES
663+
.iter()
664+
.find(|&&corrupt| {
665+
std::fs::canonicalize(corrupt).unwrap() == path.canonicalize().unwrap()
666+
})
667+
.is_some()
668+
{
663669
eprintln!("Skipping {:?}", path);
664670
continue;
665671
}

0 commit comments

Comments
 (0)