Ignore tests that stack overflow on debug builds

This commit is contained in:
Ayaz Hafiz 2022-08-25 09:22:53 -05:00
parent a8b83cfe37
commit 356ba91f19
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -953,7 +953,10 @@ fn encode_then_decode_list_of_lists_of_strings() {
} }
#[test] #[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() { fn decode_record_two_fields() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -972,7 +975,10 @@ fn decode_record_two_fields() {
} }
#[test] #[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() { fn decode_record_two_fields_string_and_int() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -991,7 +997,10 @@ fn decode_record_two_fields_string_and_int() {
} }
#[test] #[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() { fn decode_record_two_fields_string_and_string_infer() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -1010,7 +1019,10 @@ fn decode_record_two_fields_string_and_string_infer() {
} }
#[test] #[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() { fn decode_record_two_fields_string_and_string_infer_local_var() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -1030,7 +1042,10 @@ fn decode_record_two_fields_string_and_string_infer_local_var() {
} }
#[test] #[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() { fn decode_record_two_fields_string_and_string_infer_local_var_destructured() {
assert_evals_to!( assert_evals_to!(
indoc!( indoc!(
@ -1072,7 +1087,8 @@ fn decode_empty_record() {
#[test] #[test]
#[cfg(all( #[cfg(all(
any(feature = "gen-llvm", feature = "gen-wasm"), 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() { fn decode_record_of_record() {
assert_evals_to!( assert_evals_to!(