test: fvi pipeline tests hold the Drive-holder lock; the lock exists under loom too

This commit is contained in:
Matthew Jackson
2026-09-28 12:26:20 -07:00
parent a3f11963f3
commit ed715b7ff6
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -538,7 +538,8 @@ pub fn live_drive_holders() -> usize {
}
// Every test that spawns a Drive holder or reads the process-wide count holds this.
#[cfg(all(test, not(loom)))]
#[cfg(test)]
#[cfg_attr(loom, allow(dead_code))]
pub(crate) static DRIVE_HOLDER_TEST_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
/// A thread that holds the Drive (§2.5): the op joins it before returning. In debug
+1
View File
@@ -171,6 +171,7 @@ fn two_gop_image() -> Vec<u8> {
/// Drive the real highway and write every frame into the `fvi://` sink.
fn run_to_fvi(image: Vec<u8>, title: DiscTitle, path: &std::path::Path) {
let _drive = crate::sector::prefetched::holder_test_lock();
let mut input = build_iso_pipeline(
MemSource { data: image },
title.clone(),