Skip to content

Commit 312b929

Browse files
authored
[libc] Increase timeout for death tests. (#87959)
Fix test timeout on RISCV bots. Fixes #87096
1 parent 1107b47 commit 312b929

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libc/test/UnitTest/LibcDeathTestExecutors.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace testing {
1919
bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
2020
const char *LHSStr, const char *RHSStr,
2121
internal::Location Loc) {
22-
testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 500);
22+
testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 1000);
2323

2424
if (const char *error = Result.get_error()) {
2525
Ctx->markFail();
@@ -31,7 +31,7 @@ bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
3131
if (Result.timed_out()) {
3232
Ctx->markFail();
3333
tlog << Loc;
34-
tlog << "Process timed out after " << 500 << " milliseconds.\n";
34+
tlog << "Process timed out after " << 1000 << " milliseconds.\n";
3535
return false;
3636
}
3737

@@ -62,7 +62,7 @@ bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
6262
bool Test::testProcessExits(testutils::FunctionCaller *Func, int ExitCode,
6363
const char *LHSStr, const char *RHSStr,
6464
internal::Location Loc) {
65-
testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 500);
65+
testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 1000);
6666

6767
if (const char *error = Result.get_error()) {
6868
Ctx->markFail();
@@ -74,7 +74,7 @@ bool Test::testProcessExits(testutils::FunctionCaller *Func, int ExitCode,
7474
if (Result.timed_out()) {
7575
Ctx->markFail();
7676
tlog << Loc;
77-
tlog << "Process timed out after " << 500 << " milliseconds.\n";
77+
tlog << "Process timed out after " << 1000 << " milliseconds.\n";
7878
return false;
7979
}
8080

0 commit comments

Comments
 (0)