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

Function table_growth_failure2

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

Source from the content-addressed store, hash-verified

905
906#[test]
907fn table_growth_failure2() -> Result<()> {
908 let output = get_wasmtime_command()?
909 .args(&[
910 "run",
911 "-Wtrap-on-grow-failure",
912 "tests/all/cli_tests/table-grow-failure2.wat",
913 ])
914 .output()?;
915 assert!(!output.status.success());
916 let stderr = String::from_utf8_lossy(&output.stderr);
917 let expected = if cfg!(target_pointer_width = "32") {
918 "overflow calculating new table size"
919 } else {
920 "forcing trap when growing table to 4294967296 elements"
921 };
922 assert!(stderr.contains(expected), "bad stderr: {stderr}");
923 Ok(())
924}
925
926#[test]
927fn option_group_help() -> 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