devices: enable tests for audio on windows

BUG=b:213149155
BUG=b:150630566
BUG=b:236297362
TEST=tools/presubmit

Change-Id: I4619a5c9f1ff8b5ce00b4c7b7c4f5b19cff42471
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4006817
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Vikram Auradkar <auradkar@google.com>
This commit is contained in:
Vikram Auradkar 2022-09-22 22:05:21 +00:00 committed by crosvm LUCI
parent 638694c979
commit befb1ccaa9
3 changed files with 4 additions and 2 deletions

View file

@ -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" ]

View file

@ -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");
}

View file

@ -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;