The every-container seek witness sanitizes VE_SW at entry
Browse files at this commit1213004e5a656f5104172e25b0c1c02896a47c7bParent: 875b31a- fix
- the every-container seek witness sanitizes VE_SW at entry
1 changed file +7 -3
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 the | 204 | + // 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 tests | 205 | + // 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", |