mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-30 18:14:23 +01:00
GPU tests: take the GPU lock before the upload-budget test starts its child process (#3737 review)
This commit is contained in:
1 parent
e616abe953
commit
559bf80251
1 file changed
+2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user