aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:01:39 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:01:39 +0000
commite2b2fd5475b5da5866e481bd5b72ef4333032792 (patch)
tree1ff3736c7ff7a0a1d384207257fe8d16efd49bc0
parent0c58ede4097f32517135af37c827eba6b51e8d13 (diff)
parentbf5644d5887c3061d64e067214568c69ed1cc0ae (diff)
downloadbionic-android13-qpr3-s4-release.tar.gz
Change-Id: Ib14356100e94f0a5ae4f1377ff49b866dfad2d42
-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