()
| 887 | |
| 888 | #[test] |
| 889 | fn 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] |
| 907 | fn table_growth_failure2() -> Result<()> { |
nothing calls this directly
no test coverage detected