test(libkernel): wait up to 30 s for the file lock test's child process

Co-Authored-By: Claude <[email protected]>
This commit is contained in:
thuanquangandClaude committed 2026-10-19 19:25:47 +07:00
1 parent bbb45463c7
commit 83e7dcfce2
1 file changed
+1 -1
+1 -1
View File
@@ -267,7 +267,7 @@ static int ChildTry(const std::string& path, int mode) {
PROCESS_INFORMATION process{};
Require(::CreateProcessW(nullptr, command.data(), nullptr, nullptr, FALSE, CREATE_NO_WINDOW, nullptr, nullptr, &startup, &process) != 0);
::CloseHandle(process.hThread);
if (::WaitForSingleObject(process.hProcess, 3000) != WAIT_OBJECT_0) {
if (::WaitForSingleObject(process.hProcess, 30000) != WAIT_OBJECT_0) {
::TerminateProcess(process.hProcess, 99);
std::abort();
}