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

Function memory_growth_failure

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

Source from the content-addressed store, hash-verified

868#[test]
869#[cfg(not(target_arch = "s390x"))]
870fn memory_growth_failure() -> Result<()> {
871 let output = get_wasmtime_command()?
872 .args(&[
873 "run",
874 "-Wmemory64",
875 "-Wtrap-on-grow-failure",
876 "tests/all/cli_tests/memory-grow-failure.wat",
877 ])
878 .output()?;
879 let stderr = String::from_utf8_lossy(&output.stderr);
880 assert!(
881 stderr.contains("forcing a memory growth failure to be a trap"),
882 "bad stderr: {stderr}"
883 );
884 assert!(!output.status.success());
885 Ok(())
886}
887
888#[test]
889fn table_growth_failure() -> Result<()> {

Callers

nothing calls this directly

Calls 4

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
argsMethod · 0.45

Tested by

no test coverage detected