#[cfg(feature = "sandbox")]
#[test]
fn a_build_with_the_engine_feature_carries_one() {
let mut engine = crate::doctor::host::execution_engine()
.expect("a build with the feature starts its engine");
let job = runtime::SandboxJob {
wasm: std::path::PathBuf::from("no-such-module.wasm"),
argv: Vec::new(),
env: Vec::new(),
stdin: Vec::new(),
mounts: Vec::new(),
fuel: runtime::Fuel(1_000),
};
let said = format!("{:?}", engine.run(&job));
assert!(
!said.contains("this build carries no execution engine"),
"the feature is on and the run still met the absent engine: {said}"
);
}