From 559bf802511440e97cd20c3b0a485d1a76bdf862 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Sun, 15 Nov 2026 23:18:30 +0100 Subject: [PATCH] GPU tests: take the GPU lock before the upload-budget test starts its child process (#3737 review) --- crates/gpu/src/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/gpu/src/tests.rs b/crates/gpu/src/tests.rs index 2e52f6737..42cccf9b1 100644 --- a/crates/gpu/src/tests.rs +++ b/crates/gpu/src/tests.rs @@ -1499,6 +1499,8 @@ fn upload_budget_comes_from_the_memory_rule() { return; // the caller set a budget of their own } if !tight { + // The child uses the GPU: tests of this process wait until it is done (#3737 review). + hold_gpu_lock(); let exe = std::env::current_exe().expect("test binary path"); let out = std::process::Command::new(exe) .env(ENV, "1")