mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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:
1 parent
d1ffbc9ca3
commit
3cacd82f2f
1 file changed
+2
-1
@@ -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:?}");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user