diff --git a/Cargo.toml b/Cargo.toml index dcfa74b50c..55844e7fd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -315,7 +315,7 @@ all-armhf = [ ] ## All features that are compiled and tested for mingw64 -all-mingw64 = [ "balloon", "crash_report", "gpu", "haxm", "slirp", "stats" ] +all-mingw64 = [ "audio", "balloon", "crash_report", "gpu", "haxm", "slirp", "stats" ] ## All features that are compiled and tested for msvc64 all-msvc64 = [ "all-mingw64" ] diff --git a/devices/src/pci/ac97_bus_master/sys/windows.rs b/devices/src/pci/ac97_bus_master/sys/windows.rs index 64cb6f0377..eeb75f3fdf 100644 --- a/devices/src/pci/ac97_bus_master/sys/windows.rs +++ b/devices/src/pci/ac97_bus_master/sys/windows.rs @@ -290,7 +290,7 @@ impl Drop for Ac97BusMaster { fn drop(&mut self) { if let Some(exit_event) = &self.sys.exit_event { exit_event - .write(1) + .signal() .expect("Failed to write to exit_event in Ac97BusMaster"); } diff --git a/devices/src/virtio/snd/common_backend/stream_info.rs b/devices/src/virtio/snd/common_backend/stream_info.rs index 07661472b1..4c9ceef877 100644 --- a/devices/src/virtio/snd/common_backend/stream_info.rs +++ b/devices/src/virtio/snd/common_backend/stream_info.rs @@ -333,6 +333,8 @@ impl StreamInfo { } } +// TODO(b/246997900): Get these new tests to run on Windows. +#[cfg(unix)] #[cfg(test)] mod tests { use audio_streams::NoopStreamSourceGenerator;