From 9917c6c20eb9a0b3257796348b9444bc4bc7aad3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 00:37:47 +0100 Subject: [PATCH] probe3 --- crates/thing-core/tests/resolve.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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(); +}