()
| 868 | #[test] |
| 869 | #[cfg(not(target_arch = "s390x"))] |
| 870 | fn 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] |
| 889 | fn table_growth_failure() -> Result<()> { |
nothing calls this directly
no test coverage detected