Fix execution of spectest fuzzer

We've enabled bulk memory and reference types by default now which means
that wasmtime in its default settings no longer passes the spec test
suite (due to changes in error messages in initialization), so when
we're running the spec test fuzzer be sure to disable reference types
and bulk memory since that's required to pass.
This commit is contained in:
Alex Crichton
2020-08-10 06:55:36 -07:00
parent 5f36d7eab7
commit 5893317a8e

View File

@@ -406,7 +406,10 @@ pub fn make_api_calls(api: crate::generators::api::ApiCalls) {
pub fn spectest(config: crate::generators::Config, test: crate::generators::SpecTest) { pub fn spectest(config: crate::generators::Config, test: crate::generators::SpecTest) {
crate::init_fuzzing(); crate::init_fuzzing();
log::debug!("running {:?} with {:?}", test.file, config); log::debug!("running {:?} with {:?}", test.file, config);
let store = Store::new(&Engine::new(&config.to_wasmtime())); let mut config = config.to_wasmtime();
config.wasm_reference_types(false);
config.wasm_bulk_memory(false);
let store = Store::new(&Engine::new(&config));
let mut wast_context = WastContext::new(store); let mut wast_context = WastContext::new(store);
wast_context.register_spectest().unwrap(); wast_context.register_spectest().unwrap();
wast_context wast_context