video: the real-file VMD oracle checks that ffmpeg succeeded

real_files_match_ffmpeg waited for ffmpeg without looking at its exit
status, so pictures that matched before ffmpeg failed still passed. It now
asserts success, as the generated-file oracle does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
alehelandClaude Opus 5.5 committed 2026-11-17 06:08:45 +01:00
1 parent 73e6b12930
commit 873fc3ecd5
1 file changed
+3 -1
+3 -1
View File
@@ -530,7 +530,9 @@ fn real_files_match_ffmpeg() {
pictures += 1;
}
assert_eq!(theirs_out.read(&mut theirs).unwrap(), 0, "{name}: ffmpeg has more pictures");
child.wait().unwrap();
// pictures that match but an ffmpeg that failed are no comparison
let status = child.wait().unwrap();
assert!(status.success(), "{name}: ffmpeg exited with {status}");
}
println!("{} files, {pictures} pictures match ffmpeg", paths.len());
}