Unconditionally enable component-model tests (#4556)

* Unconditionally enable component-model tests

* Remove an outdated test that wasn't previously being compiled

* Fix a component model doc test

* Try to decrease memory usage in qemu
This commit is contained in:
Alex Crichton
2022-08-01 10:43:37 -05:00
committed by GitHub
parent 8d0224341c
commit 04631ad0af
7 changed files with 12 additions and 27 deletions

View File

@@ -90,6 +90,14 @@ const REALLOC_AND_FREE: &str = r#"
fn engine() -> Engine {
let mut config = Config::new();
config.wasm_component_model(true);
// When pooling allocator tests are skipped it means we're in qemu. The
// component model tests create a disproportionate number of instances so
// try to cut down on virtual memory usage by avoiding 4G reservations.
if crate::skip_pooling_allocator_tests() {
config.static_memory_maximum_size(0);
config.dynamic_memory_guard_size(0);
}
Engine::new(&config).unwrap()
}

View File

@@ -1,7 +1,6 @@
mod async_functions;
mod call_hook;
mod cli_tests;
#[cfg(feature = "component-model")]
mod component_model;
mod custom_signal_handler;
mod debug;

View File

@@ -33,7 +33,6 @@ fn run_wast(wast: &str, strategy: Strategy, pooling: bool) -> anyhow::Result<()>
.wasm_memory64(memory64)
.cranelift_debug_verifier(true);
#[cfg(feature = "component-model")]
cfg.wasm_component_model(feature_found(wast, "component-model"));
if feature_found(wast, "canonicalize-nan") {