Unconditionally enable component-model tests (#4556)

* Unconditionally enable component-model tests

* Remove an outdated test that wasn't previously being compiled

* Fix a component model doc test

* Try to decrease memory usage in qemu
This commit is contained in:
Alex Crichton
2022-08-01 10:43:37 -05:00
committed by GitHub
parent 8d0224341c
commit 04631ad0af
7 changed files with 12 additions and 27 deletions

View File

@@ -617,19 +617,3 @@ impl InstanceFlags {
self.0
}
}
#[cfg(test)]
mod tests {
use super::*;
use std::mem::size_of;
#[test]
fn size_of_vmcomponent_flags() {
let component = Component::default();
let offsets = VMComponentOffsets::new(size_of::<*mut u8>() as u8, &component);
assert_eq!(
size_of::<VMComponentFlags>(),
usize::from(offsets.size_of_vmcomponent_flags())
);
}
}