From d88a147b4d9f398c306ea2262e566c136374bb6b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Apr 2020 12:25:06 -0700 Subject: [PATCH] Add some debugging assistance to spectest oracle Basically just log what's happening so if you're running the fuzzer you can see what test is being run. --- crates/fuzzing/src/oracles.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index 29736ca195..a6df5a56c4 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -393,6 +393,8 @@ pub fn make_api_calls(api: crate::generators::api::ApiCalls) { /// /// Ensures that spec tests pass regardless of the `Config`. pub fn spectest(config: crate::generators::Config, test: crate::generators::SpecTest) { + crate::init_fuzzing(); + log::debug!("running {:?} with {:?}", test.file, config); let store = Store::new(&Engine::new(&config.to_wasmtime())); let mut wast_context = WastContext::new(store); wast_context.register_spectest().unwrap();