mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
rust/vmstate_test: Fix typo in test_vmstate_macro_array_of_pointer_wrapped()
test_vmstate_macro_array_of_pointer_wrapped() tests the 3rd element, so fix the index. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250414144943.1112885-5-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ad3ab01bb7
commit
d031d2fac9
1 changed files with 2 additions and 2 deletions
|
@ -383,12 +383,12 @@ fn test_vmstate_macro_array_of_pointer_wrapped() {
|
|||
);
|
||||
assert_eq!(foo_fields[3].offset, (FOO_ARRAY_MAX + 2) * PTR_SIZE);
|
||||
assert_eq!(foo_fields[3].num_offset, 0);
|
||||
assert_eq!(foo_fields[2].info, unsafe { &vmstate_info_uint8 });
|
||||
assert_eq!(foo_fields[3].info, unsafe { &vmstate_info_uint8 });
|
||||
assert_eq!(foo_fields[3].version_id, 0);
|
||||
assert_eq!(foo_fields[3].size, PTR_SIZE);
|
||||
assert_eq!(foo_fields[3].num, FOO_ARRAY_MAX as i32);
|
||||
assert_eq!(
|
||||
foo_fields[2].flags.0,
|
||||
foo_fields[3].flags.0,
|
||||
VMStateFlags::VMS_ARRAY.0 | VMStateFlags::VMS_ARRAY_OF_POINTER.0
|
||||
);
|
||||
assert!(foo_fields[3].vmsd.is_null());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue