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"))] #[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
mod pattern_match { mod pattern_match {
#[allow(unused_imports)]
use crate::helpers::with_larger_debug_stack;
#[cfg(feature = "gen-llvm")] #[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_evals_to; use crate::helpers::llvm::assert_evals_to;
@ -3857,8 +3860,9 @@ mod pattern_match {
#[test] #[test]
fn ranged_matches_head() { fn ranged_matches_head() {
assert_evals_to!( with_larger_debug_stack(|| {
r#" assert_evals_to!(
r#"
helper = \l -> when l is helper = \l -> when l is
[] -> 1u8 [] -> 1u8
[A] -> 2u8 [A] -> 2u8
@ -3874,21 +3878,23 @@ mod pattern_match {
helper [B], helper [B, A], helper [B, B], helper [B, A, B, B], helper [B], helper [B, A], helper [B, B], helper [B, A, B, B],
] ]
"#, "#,
RocList::from_slice(&[ RocList::from_slice(&[
1, // 1, //
2, // 2, //
3, 3, 3, 3, // 3, 3, 3, 3, //
4, 4, 4, 4, // 4, 4, 4, 4, //
5, 5, 5, 5, // 5, 5, 5, 5, //
]), ]),
RocList<u8> RocList<u8>
) )
})
} }
#[test] #[test]
fn ranged_matches_tail() { fn ranged_matches_tail() {
assert_evals_to!( with_larger_debug_stack(|| {
r#" assert_evals_to!(
r#"
helper = \l -> when l is helper = \l -> when l is
[] -> 1u8 [] -> 1u8
[A] -> 2u8 [A] -> 2u8
@ -3904,15 +3910,16 @@ mod pattern_match {
helper [B], helper [A, B], helper [B, B], helper [B, A, B, B], helper [B], helper [A, B], helper [B, B], helper [B, A, B, B],
] ]
"#, "#,
RocList::from_slice(&[ RocList::from_slice(&[
1, // 1, //
2, // 2, //
3, 3, 3, 3, // 3, 3, 3, 3, //
4, 4, 4, 4, // 4, 4, 4, 4, //
5, 5, 5, 5, // 5, 5, 5, 5, //
]), ]),
RocList<u8> RocList<u8>
) )
})
} }
#[test] #[test]

View file

@ -1,3 +1,6 @@
#[allow(unused_imports)]
use crate::helpers::with_larger_debug_stack;
#[cfg(feature = "gen-llvm")] #[cfg(feature = "gen-llvm")]
use crate::helpers::llvm::assert_evals_to; use crate::helpers::llvm::assert_evals_to;
@ -2167,9 +2170,10 @@ fn refcount_nullable_unwrapped_needing_no_refcount_issue_5027() {
#[test] #[test]
#[cfg(any(feature = "gen-llvm"))] #[cfg(any(feature = "gen-llvm"))]
fn issue_5162_recast_nested_nullable_unwrapped_layout() { fn issue_5162_recast_nested_nullable_unwrapped_layout() {
assert_evals_to!( with_larger_debug_stack(|| {
indoc!( assert_evals_to!(
r###" indoc!(
r###"
app "test" provides [main] to "./platform" app "test" provides [main] to "./platform"
Concept : [ Concept : [
@ -2184,10 +2188,11 @@ fn issue_5162_recast_nested_nullable_unwrapped_layout() {
when Dict.single bottom 0 is when Dict.single bottom 0 is
_ -> Bool.true _ -> Bool.true
"### "###
), ),
true, true,
bool bool
); );
})
} }
#[test] #[test]