summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-06-22 14:17:35 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-06-23 10:22:47 -0700
commitad3b6825f7e689c7d013b49e043fc2f5cb1d7d61 (patch)
tree768ee7f713eb2fb10a219d0bc7b97500aef6ee0b /libs/ultrahdr/jpegencoderhelper.cpp
parent8c5933e96a261b982bd7bf22df9d9d4cfbc40970 (diff)
Use threadsafe death testing for dispatcher tests
Prior to this CL, the dispatcher death tests used to run in the "fast" style. That made their execution faster, but also resulted in occasional hangups of the testing method. The test would fail because it would get stuck forever. The failure was reproducible every ~100 runs on device. Failure could not be reproduced on host, though. In this CL, we switch to the "threadsafe" approach for running this test. It makes the test slower, but in practice it's still fast enough, taking less than 100ms per execution. At the same time, I could not reproduce a failure in a similar death test, the UntrustedSpy_AbortsDispatcher one. That test ran successfully 10000 times on the device, with about 15 ms per execution. So we are only adding this parameter to the untrusted overlay one for now. Bug: 282837934 Test: m inputflinger_tests && adb sync data && adb shell -t data/nativetest64/inputflinger_tests/inputflinger_tests --gtest_filter="*UntrustedOverlay_AbortsDispatcher*" --gtest_repeat=1000 Change-Id: I747e17a3e191d910c02ad71241d3fad9a9599158
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions