From 38ab04534294a038fff7440031f714079b97cb05 Mon Sep 17 00:00:00 2001 From: Mattias Simonsson Date: Wed, 8 Nov 2023 12:02:46 +0000 Subject: [PATCH] debuggerd_test: Scale timeouts by HwTimeoutMultiplier Timeouts in tombstoned.cpp and intercept_manager.cpp are scaled by HwTimeoutMultiplier, but the timeouts in debuggerd_test.cpp are not, which means the CrasherTest#intercept_timeout test will fail for any platform that has a high enough HwTimeoutMultiplier. Bug: 309532789 Test: debuggerd_test.CrasherTest#intercept_timeout Change-Id: I83cd01e87644c011efa155a32fd5d92cc8a43a95 --- debuggerd/debuggerd_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debuggerd/debuggerd_test.cpp b/debuggerd/debuggerd_test.cpp index c3e1302b9..87c4cd2d1 100644 --- a/debuggerd/debuggerd_test.cpp +++ b/debuggerd/debuggerd_test.cpp @@ -94,7 +94,7 @@ constexpr char kWaitForDebuggerKey[] = "debug.debuggerd.wait_for_debugger"; if (sigaction(SIGALRM, &new_sigaction, &old_sigaction) != 0) { \ err(1, "sigaction failed"); \ } \ - alarm(seconds); \ + alarm(seconds * android::base::HwTimeoutMultiplier()); \ auto value = expr; \ int saved_errno = errno; \ if (sigaction(SIGALRM, &old_sigaction, nullptr) != 0) { \