From 4f0356d7f4262a6c124414ef7aac0c46081ad945 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 4 Jul 2025 16:30:33 +0100 Subject: [PATCH] Don't use sleep for test compilation at all, rely on pclose to wait --- util/test/demos/test_common.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/util/test/demos/test_common.cpp b/util/test/demos/test_common.cpp index f5d6acd90..8ac0ea80e 100644 --- a/util/test/demos/test_common.cpp +++ b/util/test/demos/test_common.cpp @@ -518,15 +518,7 @@ std::vector CompileShaderToSpv(const std::string &source_text, SPIRVTa return ret; } - msleep(400); - - int code = pclose(pipe); - - if(code != 0) - { - TEST_ERROR("Invoking %s failed: %s.", externalCompiler.c_str(), command_line.c_str()); - return ret; - } + pclose(pipe); f = fopen(outfile.c_str(), "rb"); if(f)