()
| 172 | // Run a simple WASI hello world, snapshot0 edition. |
| 173 | #[test] |
| 174 | fn hello_wasi_snapshot0() -> Result<()> { |
| 175 | for preview2 in ["-Spreview2=n", "-Spreview2=y"] { |
| 176 | let stdout = run_wasmtime(&[ |
| 177 | "-Ccache=n", |
| 178 | preview2, |
| 179 | "tests/all/cli_tests/hello_wasi_snapshot0.wat", |
| 180 | ])?; |
| 181 | assert_eq!(stdout, "Hello, world!\n"); |
| 182 | } |
| 183 | Ok(()) |
| 184 | } |
| 185 | |
| 186 | // Run a simple WASI hello world, snapshot1 edition. |
| 187 | #[test] |
nothing calls this directly
no test coverage detected