diff options
| author | iximeow <me@iximeow.net> | 2026-05-31 22:24:02 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-06-21 16:44:21 +0000 |
| commit | 85b78c0e4c8713271b232737e68601e4413ef4e0 (patch) | |
| tree | 2dac143847b477e22813dcd6a5af10dc062d5534 /test | |
| parent | 7aef56ca320bad9d72fbddd6e334381773e23d37 (diff) | |
feature gate kvm tests to linux
Diffstat (limited to 'test')
| -rw-r--r-- | test/long_mode/behavior.rs | 2 | ||||
| -rw-r--r-- | test/protected_mode/behavior.rs | 3 | ||||
| -rw-r--r-- | test/real_mode/behavior.rs | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/test/long_mode/behavior.rs b/test/long_mode/behavior.rs index e3d27aa..ad9a71e 100644 --- a/test/long_mode/behavior.rs +++ b/test/long_mode/behavior.rs @@ -1,4 +1,4 @@ -#[cfg(all(target_arch = "x86_64"))] +#[cfg(all(target_arch = "x86_64", target_os = "linux"))] mod kvm { use asmlinator::x86_64::{GuestAddress, Vm, VcpuExit, kvm_regs, kvm_sregs}; diff --git a/test/protected_mode/behavior.rs b/test/protected_mode/behavior.rs index 13c4c51..2b7eeb0 100644 --- a/test/protected_mode/behavior.rs +++ b/test/protected_mode/behavior.rs @@ -1,5 +1,4 @@ - -#[cfg(target_arch = "x86_64")] +#[cfg(all(target_arch = "x86_64", target_os = "linux"))] mod kvm { use asmlinator::x86_64::{ IsaMode, GuestAddress, diff --git a/test/real_mode/behavior.rs b/test/real_mode/behavior.rs index 6186c9d..8b7c2bb 100644 --- a/test/real_mode/behavior.rs +++ b/test/real_mode/behavior.rs @@ -1,5 +1,4 @@ - -#[cfg(target_arch = "x86_64")] +#[cfg(all(target_arch = "x86_64", target_os = "linux"))] mod kvm { use asmlinator::x86_64::{ IsaMode, GuestAddress, |
