aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2023-02-01 21:27:53 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-01 21:27:53 +0000
commitbf5644d5887c3061d64e067214568c69ed1cc0ae (patch)
tree1ff3736c7ff7a0a1d384207257fe8d16efd49bc0
parent09e956936dce314b9bd052108f2362814d148422 (diff)
parent99ebeb82c67743bff3d127e41dad917ee96705e9 (diff)
downloadbionic-android13-qpr3-c-s3-release.tar.gz
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2417212 Change-Id: I8f3ebd30d1118297691e5849baa822941365928d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--tests/gwp_asan_test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/gwp_asan_test.cpp b/tests/gwp_asan_test.cpp
index 8e5132304..5f5e3dd17 100644
--- a/tests/gwp_asan_test.cpp
+++ b/tests/gwp_asan_test.cpp
@@ -43,6 +43,15 @@
// mutation.
extern "C" const char* __gnu_basename(const char* path);
+// GWP-ASan tests can run much slower, especially when combined with HWASan.
+// Triple the deadline to avoid flakes (b/238585984).
+extern "C" bool GetInitialArgs(const char*** args, size_t* num_args) {
+ static const char* initial_args[] = {"--deadline_threshold_ms=270000"};
+ *args = initial_args;
+ *num_args = 1;
+ return true;
+}
+
// This file implements "torture testing" under GWP-ASan, where we sample every
// single allocation. The upper limit for the number of GWP-ASan allocations in
// the torture mode is is generally 40,000, so that svelte devices don't