increase stack size for debug tests

This commit is contained in:
Bryce Miller 2023-06-02 07:53:52 -04:00
parent b4aa4a9089
commit fd846b9a7a
No known key found for this signature in database
GPG key ID: F1E97BF8DF152350
2 changed files with 41 additions and 29 deletions

View file

@ -3811,6 +3811,9 @@ fn list_range_length_overflow() {
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
mod pattern_match {
#[allow(unused_imports)]
use crate::helpers::with_larger_debug_stack;
#[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_evals_to;
@ -3857,6 +3860,7 @@ mod pattern_match {
#[test]
fn ranged_matches_head() {
with_larger_debug_stack(|| {
assert_evals_to!(
r#"
helper = \l -> when l is
@ -3883,10 +3887,12 @@ mod pattern_match {
]),
RocList<u8>
)
})
}
#[test]
fn ranged_matches_tail() {
with_larger_debug_stack(|| {
assert_evals_to!(
r#"
helper = \l -> when l is
@ -3913,6 +3919,7 @@ mod pattern_match {
]),
RocList<u8>
)
})
}
#[test]

View file

@ -1,3 +1,6 @@
#[allow(unused_imports)]
use crate::helpers::with_larger_debug_stack;
#[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_evals_to;
@ -2167,6 +2170,7 @@ fn refcount_nullable_unwrapped_needing_no_refcount_issue_5027() {
#[test]
#[cfg(any(feature = "gen-llvm"))]
fn issue_5162_recast_nested_nullable_unwrapped_layout() {
with_larger_debug_stack(|| {
assert_evals_to!(
indoc!(
r###"
@ -2188,6 +2192,7 @@ fn issue_5162_recast_nested_nullable_unwrapped_layout() {
true,
bool
);
})
}
#[test]