MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / compilation_logs

Function compilation_logs

tests/all/cli_tests.rs:3333–3352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3331
3332#[test]
3333fn 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]
3355fn big_table_in_pooling_allocator() -> Result<()> {

Callers

nothing calls this directly

Calls 10

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
newFunction · 0.50
envMethod · 0.45
argsMethod · 0.45
to_stringMethod · 0.45
displayMethod · 0.45
pathMethod · 0.45
successMethod · 0.45

Tested by

no test coverage detected