crosvm/kvm/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
..
dirty_log.rs clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
kvm_tests.rs hypervisor: tests: use a less-invalid fd in irqfd_resample() 2024-03-08 22:14:51 +00:00
read_only_memory.rs clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00
real_run_adder.rs clippy: enforce safety block comments 2023-12-14 18:21:54 +00:00