Skip two-tile regression when a larger tile override is set

This commit is contained in:
yoriswind committed 2026-10-31 07:56:56 -07:00
1 parent b2c2f41e6d
commit 66d700adfb
1 file changed
+4 -1
+4 -1
View File
@@ -366,7 +366,10 @@ fn a_lost_window_device_closes_only_once_unsaved_work_is_saved() {
fn tiled_canvas_keeps_tiles_in_place() {
use photocraft_ui_egui::gpu_canvas::ViewParams;
let tile_override = std::env::var("PHOTOCRAFT_GPU_TILE").ok().and_then(|v| v.parse::<u32>().ok());
assert!(tile_override.is_none_or(|tile| tile <= 64), "PHOTOCRAFT_GPU_TILE must be at most 64 for this two-tile test");
if tile_override.is_some_and(|tile| tile > 64) {
eprintln!("skipping: PHOTOCRAFT_GPU_TILE must be at most 64 for this two-tile test");
return;
}
let _gpu = gpu_lock();
const N: u32 = 2;
const W: u32 = N * 64;