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

Function table_growth_failure

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

Source from the content-addressed store, hash-verified

887
888#[test]
889fn table_growth_failure() -> Result<()> {
890 let output = get_wasmtime_command()?
891 .args(&[
892 "run",
893 "-Wtrap-on-grow-failure",
894 "tests/all/cli_tests/table-grow-failure.wat",
895 ])
896 .output()?;
897 assert!(!output.status.success());
898 let stderr = String::from_utf8_lossy(&output.stderr);
899 assert!(
900 stderr.contains("forcing trap when growing table"),
901 "bad stderr: {stderr}"
902 );
903 Ok(())
904}
905
906#[test]
907fn table_growth_failure2() -> 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