Extend bionic-unit-tests timeout.
GWP-ASan stress tests can take a while, especially under HWASan. Bug: 238585984 Test: sleep(100) in one of the tests, and then 'atest bionic-unit-tests' Change-Id: Ibd983da1c8fd06cffed756cf3b24523f4671d49e
This commit is contained in:
parent
7ff6a44dce
commit
1f3c8d688c
|
@ -43,6 +43,15 @@
|
||||||
// mutation.
|
// mutation.
|
||||||
extern "C" const char* __gnu_basename(const char* path);
|
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
|
// 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
|
// 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
|
// the torture mode is is generally 40,000, so that svelte devices don't
|
||||||
|
|
Loading…
Reference in New Issue