diff --git a/crates/compiler/test_gen/src/gen_abilities.rs b/crates/compiler/test_gen/src/gen_abilities.rs index 14879049b1..cb84a01bf7 100644 --- a/crates/compiler/test_gen/src/gen_abilities.rs +++ b/crates/compiler/test_gen/src/gen_abilities.rs @@ -953,7 +953,10 @@ fn encode_then_decode_list_of_lists_of_strings() { } #[test] -#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +#[cfg(all( + any(feature = "gen-llvm", feature = "gen-wasm"), + not(debug_assertions) // hits a stack overflow in debug builds +))] fn decode_record_two_fields() { assert_evals_to!( indoc!( @@ -972,7 +975,10 @@ fn decode_record_two_fields() { } #[test] -#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +#[cfg(all( + any(feature = "gen-llvm", feature = "gen-wasm"), + not(debug_assertions) // hits a stack overflow in debug builds +))] fn decode_record_two_fields_string_and_int() { assert_evals_to!( indoc!( @@ -991,7 +997,10 @@ fn decode_record_two_fields_string_and_int() { } #[test] -#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +#[cfg(all( + any(feature = "gen-llvm", feature = "gen-wasm"), + not(debug_assertions) // hits a stack overflow in debug builds +))] fn decode_record_two_fields_string_and_string_infer() { assert_evals_to!( indoc!( @@ -1010,7 +1019,10 @@ fn decode_record_two_fields_string_and_string_infer() { } #[test] -#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +#[cfg(all( + any(feature = "gen-llvm", feature = "gen-wasm"), + not(debug_assertions) // hits a stack overflow in debug builds +))] fn decode_record_two_fields_string_and_string_infer_local_var() { assert_evals_to!( indoc!( @@ -1030,7 +1042,10 @@ fn decode_record_two_fields_string_and_string_infer_local_var() { } #[test] -#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))] +#[cfg(all( + any(feature = "gen-llvm", feature = "gen-wasm"), + not(debug_assertions) // hits a stack overflow in debug builds +))] fn decode_record_two_fields_string_and_string_infer_local_var_destructured() { assert_evals_to!( indoc!( @@ -1072,7 +1087,8 @@ fn decode_empty_record() { #[test] #[cfg(all( any(feature = "gen-llvm", feature = "gen-wasm"), - not(feature = "gen-llvm-wasm") // hits a wasm3 stack overflow + not(feature = "gen-llvm-wasm"), // hits a wasm3 stack overflow + not(debug_assertions) // hits a stack overflow in debug builds ))] fn decode_record_of_record() { assert_evals_to!(