GPU tests: take the GPU lock before the upload-budget test starts its child process (#3737 review)

This commit is contained in:
vangel76 committed 2026-11-15 23:18:30 +01:00
1 parent e616abe953
commit 559bf80251
1 file changed
+2
+2
View File
@@ -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")