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:
@@ -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())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user