aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-01 21:45:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-02-01 21:45:10 +0000
commita46de511cb6131c5df03dbc91c9e3d3da9231021 (patch)
tree4af802a24ae97d7073e8b88c76c6fc712305ef69
parent3d88c6b73a5c90ba1c3b022caae0e500c93b4a16 (diff)
parent6eaf202fcfe9f75619ba500d696a11dacd5788ba (diff)
downloadbionic-android-cts-13.0_r6.tar.gz
Merge "Snap for 9551860 from 9c1e170668513788b0731a5869dc1216c743110b to android13-tests-release" into android13-tests-releaseandroid-vts-13.0_r7android-vts-13.0_r6android-vts-13.0_r5android-vts-13.0_r4android-cts-13.0_r7android-cts-13.0_r6android-cts-13.0_r5android-cts-13.0_r4
-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 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