()
| 905 | |
| 906 | #[test] |
| 907 | fn 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] |
| 927 | fn option_group_help() -> Result<()> { |
nothing calls this directly
no test coverage detected