Skip to content

Commit

Permalink
Remove usage of wasmtime_test macro
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 9, 2024
1 parent a14a6be commit f08dd9e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
1 change: 0 additions & 1 deletion tests/all/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ fn concurrent_type_modifications_and_checks() -> Result<()> {

let mut config = Config::new();
config.wasm_function_references(true);

let engine = Engine::new(&config)?;

let mut threads = Vec::new();
Expand Down
33 changes: 20 additions & 13 deletions tests/all/traps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::panic::{self, AssertUnwindSafe};
use std::process::Command;
use std::sync::{Arc, Mutex};
use wasmtime::*;
use wasmtime_test_macros::wasmtime_test;

#[test]
fn test_trap_return() -> Result<()> {
Expand Down Expand Up @@ -1681,9 +1680,11 @@ fn async_stack_size_ignored_if_disabled() -> Result<()> {
Ok(())
}

#[wasmtime_test(wasm_features(tail_call))]
fn tail_call_to_imported_function(config: &mut Config) -> Result<()> {
let engine = Engine::new(config)?;
#[test]
fn tail_call_to_imported_function() -> Result<()> {
let mut config = Config::new();
config.wasm_tail_call(true);
let engine = Engine::new(&config)?;

let module = Module::new(
&engine,
Expand All @@ -1709,9 +1710,11 @@ fn tail_call_to_imported_function(config: &mut Config) -> Result<()> {
Ok(())
}

#[wasmtime_test(wasm_features(tail_call))]
fn tail_call_to_imported_function_in_start_function(config: &mut Config) -> Result<()> {
let engine = Engine::new(config)?;
#[test]
fn tail_call_to_imported_function_in_start_function() -> Result<()> {
let mut config = Config::new();
config.wasm_tail_call(true);
let engine = Engine::new(&config)?;

let module = Module::new(
&engine,
Expand All @@ -1736,9 +1739,11 @@ fn tail_call_to_imported_function_in_start_function(config: &mut Config) -> Resu
Ok(())
}

#[wasmtime_test(wasm_features(tail_call, function_references))]
fn return_call_ref_to_imported_function(config: &mut Config) -> Result<()> {
let engine = Engine::new(config)?;
#[test]
fn return_call_ref_to_imported_function() -> Result<()> {
let mut config = Config::new();
config.wasm_tail_call(true);
let engine = Engine::new(&config)?;

let module = Module::new(
&engine,
Expand All @@ -1763,9 +1768,11 @@ fn return_call_ref_to_imported_function(config: &mut Config) -> Result<()> {
Ok(())
}

#[wasmtime_test(wasm_features(tail_call, function_references))]
fn return_call_indirect_to_imported_function(config: &mut Config) -> Result<()> {
let engine = Engine::new(config)?;
#[test]
fn return_call_indirect_to_imported_function() -> Result<()> {
let mut config = Config::new();
config.wasm_tail_call(true);
let engine = Engine::new(&config)?;

let module = Module::new(
&engine,
Expand Down

0 comments on commit f08dd9e

Please sign in to comment.