mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-17 10:51:21 +00:00
test(runtime-core) offset_of!
fails with a struct containing NonNull
types.
It fails only in release mode. That's a bug from the `field-offset` crate. This patch is a temporary fix.
This commit is contained in:
@ -831,15 +831,9 @@ mod vm_offset_tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn func_ctx() {
|
fn func_ctx() {
|
||||||
assert_eq!(
|
assert_eq!(FuncCtx::offset_vmctx() as usize, 0,);
|
||||||
FuncCtx::offset_vmctx() as usize,
|
|
||||||
offset_of!(FuncCtx => vmctx).get_byte_offset(),
|
|
||||||
);
|
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(FuncCtx::offset_func_env() as usize, 8,);
|
||||||
FuncCtx::offset_func_env() as usize,
|
|
||||||
offset_of!(FuncCtx => func_env).get_byte_offset(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Reference in New Issue
Block a user