diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2023-02-01 18:54:31 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-02-01 18:54:31 +0000 |
commit | 5d0345280acac03d03b1b4072de56a1ffff19c52 (patch) | |
tree | 4af802a24ae97d7073e8b88c76c6fc712305ef69 | |
parent | 28e71b61c60e69efbc6331690f007f5351b9422d (diff) | |
parent | 9c1e170668513788b0731a5869dc1216c743110b (diff) | |
download | bionic-5d0345280acac03d03b1b4072de56a1ffff19c52.tar.gz |
Merge "Extend bionic-unit-tests timeout." into android13-tests-dev am: 9c1e170668
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2417212
Change-Id: Ifcf1d9437cd5e35c38e2eb5b7489d32524103fc9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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 |