diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-05 22:15:28 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-05 22:15:28 +0000 |
commit | 70e758282f9312725c5fb124b8a49848d3edcf88 (patch) | |
tree | 4af802a24ae97d7073e8b88c76c6fc712305ef69 | |
parent | 9bf17efc67c76be2e29f0c353596a61fa97c62c1 (diff) | |
parent | 139a07082860bce4f4e47dc8df5b32202d0e83fc (diff) | |
download | bionic-android13-mainline-mediaprovider-release.tar.gz |
Snap for 9564930 from 139a07082860bce4f4e47dc8df5b32202d0e83fc to mainline-mediaprovider-releaseaml_mpr_331918000aml_mpr_331812020aml_mpr_331711020aml_mpr_331613010android13-mainline-mediaprovider-release
Change-Id: I5f88f204de2cea7422f41e7bcd0fa68f8bec7289
-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 b2c7780b1..23fb8b9b6 100644 --- a/tests/gwp_asan_test.cpp +++ b/tests/gwp_asan_test.cpp @@ -50,6 +50,15 @@ void RunGwpAsanTest(const char* test_name) { R"(\[ PASSED \] [1-9]+0? test)"); } +// 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 |