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]
#[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!(