fix test aligned (#25419)
This commit is contained in:
parent
a5792885ca
commit
2f445c70b7
|
@ -4469,7 +4469,7 @@ mod tests {
|
||||||
};
|
};
|
||||||
let mut result: Result<u64, EbpfError<BpfError>> = Ok(0);
|
let mut result: Result<u64, EbpfError<BpfError>> = Ok(0);
|
||||||
syscall.call(
|
syscall.call(
|
||||||
size_of::<u8>() as u64,
|
size_of::<T>() as u64,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
@ -4480,7 +4480,7 @@ mod tests {
|
||||||
let address = result.unwrap();
|
let address = result.unwrap();
|
||||||
assert_ne!(address, 0);
|
assert_ne!(address, 0);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
(address as *const u8 as usize).wrapping_rem(align_of::<u8>()),
|
(address as *const u8 as usize).wrapping_rem(align_of::<T>()),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue