Add test to ensure struct sizes are correct

This commit is contained in:
Matt Bilker 2021-10-09 10:45:46 +00:00
parent 2a9a81290b
commit 80e3397a44
No known key found for this signature in database
GPG Key ID: 69ADF8AEB6C8B5D1

View File

@ -458,3 +458,9 @@ fn apply_profile_override(config: &mut VgpuConfig) -> bool {
true true
} }
#[test]
fn test_size() {
assert_eq!(mem::size_of::<VgpuStart>(), 0x420);
assert_eq!(mem::size_of::<VgpuConfig>(), 0x730);
}