rust-vmm / kvm-ioctls

Apache License 2.0
255 stars 103 forks source link

Add test for vcpu_init with an invalid target #266

Closed MatiasVara closed 1 month ago

MatiasVara commented 1 month ago

Summary of the PR

To test vcpu_init, replace the zeroed value with the invalid value KVM_ARM_NUM_TARGETS. Put the test in a separate test from the test_get_preferred_target test. This fixes issue #265.

Requirements

Before submitting your PR, please make sure you addressed the following requirements: