forge
Explore
Log in

Don't you dare go Hollow

The every-container seek witness sanitizes VE_SW at entry

Browse files at this commit

1213004e5a656f5104172e25b0c1c02896a47c7bAhmet Kaan GümüşParent: 875b31a
  • fix
    • the every-container seek witness sanitizes VE_SW at entry
Show full message
🐛 fix(engine): the every-container seek witness sanitizes VE_SW at entry

The AV1 witness lane's comment rewrite dropped the remove_var the test
kept at its top, and sibling tests leak VE_SW=1 by design before it runs
alphabetically: under the leaked pin the plugin-only HEVC fixtures refuse
at open and the documented full run fails 11/1 at test_hevc.mp4. The
sanitizer is back, with the leak named and the --test-threads=1 note
that makes it safe.
crates/engine/tests/hw_decode.rsmodified+7 -3
@@ -201,9 +201,13 @@ fn seek_matches_linear() {
201 #[test]201 #[test]
202 #[ignore = "needs libengine_hw.so and a VA-API driver"]202 #[ignore = "needs libengine_hw.so and a VA-API driver"]
203 fn seek_matches_linear_every_container() {203 fn seek_matches_linear_every_container() {
204- // The hardware path for these, including AV1's fixture: the point is the204+ // Sanitize at entry: sibling tests leak `VE_SW=1` by design and run before
205- // seek against the same seat a linear decode ran on, which the tests205+ // this one alphabetically, and a leaked pin makes the plugin-only HEVC
206- // below pin for the software seat.206+ // fixtures refuse at open. The hardware path for these, including AV1's
207+ // fixture: the point is the seek against the same seat a linear decode ran
208+ // on, which the tests below pin for the software seat. SAFETY:
209+ // --test-threads=1, which the documented invocation keeps.
210+ unsafe { std::env::remove_var("VE_SW") };
207 for name in [211 for name in [
208 "test_baseline.mp4",212 "test_baseline.mp4",
209 "test_high.mp4",213 "test_high.mp4",