MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / wasi_misaligned_pointer

Function wasi_misaligned_pointer

tests/all/cli_tests.rs:732–743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

730
731#[test]
732fn wasi_misaligned_pointer() -> Result<()> {
733 let output = get_wasmtime_command()?
734 .arg("./tests/all/cli_tests/wasi_misaligned_pointer.wat")
735 .output()?;
736 assert!(!output.status.success());
737 let stderr = String::from_utf8_lossy(&output.stderr);
738 assert!(
739 stderr.contains("Pointer not aligned"),
740 "bad stderr: {stderr}",
741 );
742 Ok(())
743}
744
745#[test]
746#[cfg_attr(not(feature = "component-model"), ignore)]

Callers

nothing calls this directly

Calls 4

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
argMethod · 0.45

Tested by

no test coverage detected