aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:00:44 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:00:44 +0000
commita1823c1a0880c7c81e3be0f17ce0eb584adad46f (patch)
tree1ff3736c7ff7a0a1d384207257fe8d16efd49bc0
parent9c7755681312a6946b803e6507e1a767534fdb3d (diff)
parentbf5644d5887c3061d64e067214568c69ed1cc0ae (diff)
downloadbionic-android13-d2-release.tar.gz
Snap for 9552684 from bf5644d5887c3061d64e067214568c69ed1cc0ae to tm-d2-releaseandroid-13.0.0_r55android13-d2-release
Change-Id: I71cb42326ba27384c7bd7a68ab24dd5894ea70e4
-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