Tests: the artboard export scratch test joins the global_state binary

`cargo xtask test-binaries` refuses single-file test binaries under
crates/*/tests. The test sets the scratch disk and the memory budget for
the whole process, so it moves next to scratch_disk.rs in
tests/global_state and takes the same process lock and test volume.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-11-19 18:36:29 +01:00
1 parent 2cadc69c17
commit c30a5bfbd7
2 files changed
+3

No files matched your search

@@ -11,6 +11,8 @@ use std::io::{Read, Seek, SeekFrom, Write};
#[test]
fn artboard_exports_refuse_unreadable_scratch_tiles() {
photocraft_raster::spill::use_test_volume_space();
let _scratch = crate::lock(&crate::PROCESS);
let root = std::env::temp_dir().join(format!("photocraft-artboard-scratch-{}", std::process::id()));
let scratch = root.join("scratch");
let out = root.join("out");
+1
View File
@@ -2,6 +2,7 @@
//! spill configuration, simulated memory, global caches, compositor settings). They live apart from
//! `it` so plain `cargo test` runs them without the rest of the suite.
mod artboard_export_scratch;
mod lut_row_cache_purge;
mod mask_cache_purge;
mod memory_gate;