mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
cros_async: ignore punch_hole tests on wine
Wine does not support the FSCTL_SET_ZERO_DATA request: fixme:ntdll:server_ioctl_file Unsupported ioctl 980c8 (device=9 access=2 func=32 method=0) So ignore the tests that require it when using the mingw toolchain, which we assume means testing in wine for now. BUG=None TEST=tools/dev_container ./tools/run_tests --target=host --arch=win64 Change-Id: I351758fac3b3e1eb44545bb1d2340ddec4461120 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3626021 Reviewed-by: Noah Gold <nkgold@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Anton Romanov <romanton@google.com>
This commit is contained in:
parent
1f43c67a12
commit
404c8261e9
1 changed files with 2 additions and 0 deletions
|
@ -535,6 +535,7 @@ mod tests {
|
|||
assert_eq!(std::str::from_utf8(buf.as_slice()).unwrap(), "data");
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_os = "windows", target_env = "gnu"), ignore)]
|
||||
#[test]
|
||||
fn test_punch_holes() {
|
||||
let mut temp_file = NamedTempFile::new().unwrap();
|
||||
|
@ -568,6 +569,7 @@ mod tests {
|
|||
}
|
||||
|
||||
/// Test should fail because punch hole should not be allowed to allocate more memory
|
||||
#[cfg_attr(all(target_os = "windows", target_env = "gnu"), ignore)]
|
||||
#[test]
|
||||
fn test_punch_holes_fail_out_of_bounds() {
|
||||
let mut temp_file = NamedTempFile::new().unwrap();
|
||||
|
|
Loading…
Reference in a new issue