diff options
author | Christopher Ferris <cferris@google.com> | 2021-08-05 13:26:11 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2021-08-05 14:01:52 -0700 |
commit | e07b33d3add0ca6c3e22471b29a835cfd2c293bd (patch) | |
tree | 4a3af6bc63a0546d1976437225724141e38bf36b /tests/malloc_test.cpp | |
parent | 678cac51d471b6792805748545dc7684b759ba73 (diff) |
Only run the exec once if test passes.
I accidentally made the tests run MAX_RETRIES times instead of
running once when passing, and at most MAX_RETRIES when the
test fails. Also, add a bit of randomness to the usleep to try and
avoid tests syncing up on failures.
Bug: 193898572
Test: Ran unit tests and verified that a pass doesn't result in another run.
Test: Ran three copies of the unit tests at the same time to verify that
Test: there isn't a flaky test failure.
Change-Id: I8b8d3cd05ca7d1e87ce34bf10aeef84f6989fdab
Diffstat (limited to 'tests/malloc_test.cpp')
0 files changed, 0 insertions, 0 deletions