svg tests: run the nested shared pattern check on a 64 MiB stack

usvg's conversion of the 9,500-group drawing overflows the default test thread stack on Windows.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-11-07 20:03:31 +01:00
1 parent d1ffbc9ca3
commit 3cacd82f2f
1 file changed
+2 -1
+2 -1
View File
@@ -1285,7 +1285,8 @@ fn nested_shared_patterns_add_up_their_depth() {
}
let body: String = (0..k).rev().map(|i| format!("<rect width=\"10\" height=\"10\" fill=\"url(#D{i})\"/>")).collect();
let svg = format!("<svg {NS} width=\"100\" height=\"100\"><defs>{defs}</defs>{body}</svg>");
let err = check_only(&svg, 100, 100).unwrap_err();
// 9,500 nested groups: usvg's conversion overflows the 2 MiB test-thread stack on Windows.
let err = std::thread::Builder::new().stack_size(64 << 20).spawn(move || check_only(&svg, 100, 100).unwrap_err()).unwrap().join().unwrap();
assert!(err.message.contains("layers"), "{err:?}");
}