Skip to content

Commit

Permalink
Fix test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Nov 20, 2024
1 parent b359cab commit c113ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/all/stack_overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ fn host_always_has_some_stack() -> Result<()> {
}
}

// Don't test Cranelift here because it takes too long to compiler in debug
// mode.
#[wasmtime_test]
fn big_stack_works_ok(config: &mut Config) -> Result<()> {
const N: usize = 10000;
Expand All @@ -146,6 +144,8 @@ fn big_stack_works_ok(config: &mut Config) -> Result<()> {
s.push_str("(func $get (result i64) i64.const 0)\n");
s.push_str(")\n");

// Disable cranelift optimizations to ensure that this test doesn't take too
// long in debug mode due to the large size of its code.
config.cranelift_opt_level(OptLevel::None);
config.cranelift_regalloc_algorithm(RegallocAlgorithm::SinglePass);
let engine = Engine::new(config)?;
Expand Down

0 comments on commit c113ad3

Please sign in to comment.