mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
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:
1 parent
2cadc69c17
commit
c30a5bfbd7
2 files changed
+3
No files matched your search
+2
@@ -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");
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user