crosvm/hypervisor/tests
Daniel Verkamp da9e6b3fbe hypervisor: tests: use a less-invalid fd in irqfd_resample()
Constructing a SafeDescriptor from file descriptor -1 will panic at
runtime when it becomes an OwnedFd wrapper. Rework the test code to
generate an Event with an invalid, but not that invalid, file
descriptor.

BUG=b:242953353
TEST=tools/dev_container tools/presubmit

Change-Id: I0c4865fc90f1c83ec9fb1a1dc1fa0600ce14f479
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5354689
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-03-08 22:14:51 +00:00
..
kvm hypervisor: tests: use a less-invalid fd in irqfd_resample() 2024-03-08 22:14:51 +00:00
dirty_log.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00
mmio_and_pio.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00
mmio_fetch_memory.rs Remove target_arch = "x86" checks 2023-08-18 23:36:47 +00:00
read_only_memory.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00
real_run_addr.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00
remove_memory.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00
tsc_offsets.rs hypervisor: tests: require windows for haxm 2024-03-08 01:12:21 +00:00