summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlntue <35648136+lntue@users.noreply.github.com>2024-04-08 11:31:07 -0400
committerGitHub <noreply@github.com>2024-04-08 11:31:07 -0400
commit312b9297bb9284bddb36980f64661c24c876eef0 (patch)
tree1735bdf145b200bb7159bca7faf5434f93ceec83
parent1107b47dcd145518c7b811bf10e2b848782b0478 (diff)
[libc] Increase timeout for death tests. (#87959)
Fix test timeout on RISCV bots. Fixes https://github.com/llvm/llvm-project/issues/87096
-rw-r--r--libc/test/UnitTest/LibcDeathTestExecutors.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/test/UnitTest/LibcDeathTestExecutors.cpp b/libc/test/UnitTest/LibcDeathTestExecutors.cpp
index e891c4e3c0b5..fa6d16410bb7 100644
--- a/libc/test/UnitTest/LibcDeathTestExecutors.cpp
+++ b/libc/test/UnitTest/LibcDeathTestExecutors.cpp
@@ -19,7 +19,7 @@ namespace testing {
bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
const char *LHSStr, const char *RHSStr,
internal::Location Loc) {
- testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 500);
+ testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 1000);
if (const char *error = Result.get_error()) {
Ctx->markFail();
@@ -31,7 +31,7 @@ bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
if (Result.timed_out()) {
Ctx->markFail();
tlog << Loc;
- tlog << "Process timed out after " << 500 << " milliseconds.\n";
+ tlog << "Process timed out after " << 1000 << " milliseconds.\n";
return false;
}
@@ -62,7 +62,7 @@ bool Test::testProcessKilled(testutils::FunctionCaller *Func, int Signal,
bool Test::testProcessExits(testutils::FunctionCaller *Func, int ExitCode,
const char *LHSStr, const char *RHSStr,
internal::Location Loc) {
- testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 500);
+ testutils::ProcessStatus Result = testutils::invoke_in_subprocess(Func, 1000);
if (const char *error = Result.get_error()) {
Ctx->markFail();
@@ -74,7 +74,7 @@ bool Test::testProcessExits(testutils::FunctionCaller *Func, int ExitCode,
if (Result.timed_out()) {
Ctx->markFail();
tlog << Loc;
- tlog << "Process timed out after " << 500 << " milliseconds.\n";
+ tlog << "Process timed out after " << 1000 << " milliseconds.\n";
return false;
}