| 3331 | |
| 3332 | #[test] |
| 3333 | fn compilation_logs() -> Result<()> { |
| 3334 | let temp = tempfile::NamedTempFile::new()?; |
| 3335 | let output = get_wasmtime_command()? |
| 3336 | .args(&[ |
| 3337 | "compile", |
| 3338 | "-Wgc", |
| 3339 | "tests/all/cli_tests/issue-10353.wat", |
| 3340 | "--output", |
| 3341 | &temp.path().display().to_string(), |
| 3342 | ]) |
| 3343 | .env("WASMTIME_LOG", "trace") |
| 3344 | .env("RUST_BACKTRACE", "1") |
| 3345 | .output()?; |
| 3346 | if !output.status.success() { |
| 3347 | println!("stdout: {}", String::from_utf8_lossy(&output.stdout)); |
| 3348 | println!("stderr: {}", String::from_utf8_lossy(&output.stderr)); |
| 3349 | panic!("wasmtime compilation failed when logs requested"); |
| 3350 | } |
| 3351 | Ok(()) |
| 3352 | } |
| 3353 | |
| 3354 | #[test] |
| 3355 | fn big_table_in_pooling_allocator() -> Result<()> { |