()
| 393 | // Run the greeter test, which runs a preloaded reactor and a command. |
| 394 | #[test] |
| 395 | fn greeter_preload_callable_command() -> Result<()> { |
| 396 | let wasm = build_wasm("tests/all/cli_tests/greeter_command.wat")?; |
| 397 | let stdout = run_wasmtime(&[ |
| 398 | "run", |
| 399 | "-Ccache=n", |
| 400 | "--preload", |
| 401 | "reactor=tests/all/cli_tests/greeter_callable_command.wat", |
| 402 | wasm.path().to_str().unwrap(), |
| 403 | ])?; |
| 404 | assert_eq!(stdout, "Hello _start\nHello callable greet\nHello done\n"); |
| 405 | Ok(()) |
| 406 | } |
| 407 | |
| 408 | // Ensure successful WASI exit call with FPR saving frames on stack for Windows x64 |
| 409 | // See https://github.com/bytecodealliance/wasmtime/issues/1967 |
nothing calls this directly
no test coverage detected