diff options
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-02 00:01:39 +0000 |
|---|---|---|
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-02 00:01:39 +0000 |
| commit | e2b2fd5475b5da5866e481bd5b72ef4333032792 (patch) | |
| tree | 1ff3736c7ff7a0a1d384207257fe8d16efd49bc0 | |
| parent | 0c58ede4097f32517135af37c827eba6b51e8d13 (diff) | |
| parent | bf5644d5887c3061d64e067214568c69ed1cc0ae (diff) | |
Snap for 9552684 from bf5644d5887c3061d64e067214568c69ed1cc0ae to tm-qpr3-release
Change-Id: Ib14356100e94f0a5ae4f1377ff49b866dfad2d42
| -rw-r--r-- | tests/gwp_asan_test.cpp | 9 |
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 |
