diff --git a/crates/tests/arch/tests/sys.rs b/crates/tests/arch/tests/sys.rs index ebdcbd152c..a666486e88 100644 --- a/crates/tests/arch/tests/sys.rs +++ b/crates/tests/arch/tests/sys.rs @@ -1,13 +1,13 @@ -use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; - #[test] #[cfg(target_arch = "x86_64")] fn test() { + use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(256, core::mem::size_of::()); } #[test] #[cfg(target_arch = "x86")] fn test() { + use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(4, core::mem::size_of::()); } diff --git a/crates/tests/arch/tests/win.rs b/crates/tests/arch/tests/win.rs index 18ab430665..d8a4add7fe 100644 --- a/crates/tests/arch/tests/win.rs +++ b/crates/tests/arch/tests/win.rs @@ -1,13 +1,13 @@ -use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; - #[test] #[cfg(target_arch = "x86_64")] fn test() { + use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(256, core::mem::size_of::()); } #[test] #[cfg(target_arch = "x86")] fn test() { + use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS; assert_eq!(4, core::mem::size_of::()); } diff --git a/crates/tests/arch_feature/tests/sys.rs b/crates/tests/arch_feature/tests/sys.rs index 60ec04d875..8659908151 100644 --- a/crates/tests/arch_feature/tests/sys.rs +++ b/crates/tests/arch_feature/tests/sys.rs @@ -1,11 +1,11 @@ -use windows_sys::{ - Win32::System::Diagnostics::Debug::CONTEXT, - Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, -}; - #[test] #[cfg(target_arch = "x86_64")] fn test() { + use windows_sys::{ + Win32::System::Diagnostics::Debug::CONTEXT, + Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, + }; + assert_eq!(1232, core::mem::size_of::()); use windows_sys::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64; @@ -21,6 +21,11 @@ fn test() { #[test] #[cfg(target_arch = "x86")] fn test() { + use windows_sys::{ + Win32::System::Diagnostics::Debug::CONTEXT, + Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, + }; + assert_eq!(716, core::mem::size_of::()); use windows_sys::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32; diff --git a/crates/tests/arch_feature/tests/win.rs b/crates/tests/arch_feature/tests/win.rs index 5f3fa7b831..2716d123b8 100644 --- a/crates/tests/arch_feature/tests/win.rs +++ b/crates/tests/arch_feature/tests/win.rs @@ -1,11 +1,11 @@ -use windows::{ - Win32::System::Diagnostics::Debug::CONTEXT, - Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, -}; - #[test] #[cfg(target_arch = "x86_64")] fn test() { + use windows::{ + Win32::System::Diagnostics::Debug::CONTEXT, + Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, + }; + assert_eq!(1232, core::mem::size_of::()); use windows::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64; @@ -21,6 +21,11 @@ fn test() { #[test] #[cfg(target_arch = "x86")] fn test() { + use windows::{ + Win32::System::Diagnostics::Debug::CONTEXT, + Win32::System::Environment::VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, + }; + assert_eq!(716, core::mem::size_of::()); use windows::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32;