Don't use sleep for test compilation at all, rely on pclose to wait

This commit is contained in:
baldurk
2025-07-08 12:22:36 +01:00
parent e4e1e27814
commit 4f0356d7f4
+1 -9
View File
@@ -518,15 +518,7 @@ std::vector<uint32_t> 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)