Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Apr 17, 2024
1 parent 7f5a49a commit 76c16cd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
4 changes: 2 additions & 2 deletions crates/tests/arch/tests/sys.rs
Original file line number Diff line number Diff line change
@@ -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::<KNONVOLATILE_CONTEXT_POINTERS>());
}

#[test]
#[cfg(target_arch = "x86")]
fn test() {
use windows_sys::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS;
assert_eq!(4, core::mem::size_of::<KNONVOLATILE_CONTEXT_POINTERS>());
}
4 changes: 2 additions & 2 deletions crates/tests/arch/tests/win.rs
Original file line number Diff line number Diff line change
@@ -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::<KNONVOLATILE_CONTEXT_POINTERS>());
}

#[test]
#[cfg(target_arch = "x86")]
fn test() {
use windows::Win32::System::Diagnostics::Debug::KNONVOLATILE_CONTEXT_POINTERS;
assert_eq!(4, core::mem::size_of::<KNONVOLATILE_CONTEXT_POINTERS>());
}
15 changes: 10 additions & 5 deletions crates/tests/arch_feature/tests/sys.rs
Original file line number Diff line number Diff line change
@@ -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::<CONTEXT>());

use windows_sys::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64;
Expand All @@ -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::<CONTEXT>());

use windows_sys::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32;
Expand Down
15 changes: 10 additions & 5 deletions crates/tests/arch_feature/tests/win.rs
Original file line number Diff line number Diff line change
@@ -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::<CONTEXT>());

use windows::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64;
Expand All @@ -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::<CONTEXT>());

use windows::Win32::System::Environment::VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32;
Expand Down

0 comments on commit 76c16cd

Please sign in to comment.