diff --git a/crates/thing-core/tests/resolve.rs b/crates/thing-core/tests/resolve.rs index 342e773..75a0548 100644 --- a/crates/thing-core/tests/resolve.rs +++ b/crates/thing-core/tests/resolve.rs @@ -969,3 +969,13 @@ fn probe_build_only() { eprintln!("dropped"); }); } + +#[test] +fn probe_stack() { + let mb: usize = std::env::var("MB").unwrap().parse().unwrap(); + std::thread::Builder::new().stack_size(mb * 1024 * 1024).spawn(|| { + let document = surface(chain(200, false), &[]); + let resolution = run(&document, &MemState::new()); + eprintln!("ok {}", resolution.tree.is_some()); + }).unwrap().join().unwrap(); +}