Files
wasmtime/crates/fuzzing/tests/regressions.rs
2019-11-26 17:40:36 -05:00

16 lines
597 B
Rust

//! Regression tests for bugs found via fuzzing.
//!
//! The `#[test]` goes in here, the Wasm binary goes in
//! `./regressions/some-descriptive-name.wasm`, and then the `#[test]` should
//! use the Wasm binary by including it via
//! `include_bytes!("./regressions/some-descriptive-name.wasm")`.
#[allow(unused_imports)] // Until we actually have some regression tests...
use wasmtime_fuzzing::*;
#[test]
fn instantiate_empty_module() {
let data = wat::parse_str(include_str!("./regressions/empty.wat")).unwrap();
oracles::instantiate(&data, wasmtime_jit::CompilationStrategy::Auto);
}