summaryrefslogtreecommitdiff
path: root/libs/input/KeyLayoutMap.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2024-04-26 15:32:59 +0000
committer Lais Andrade <lsandrade@google.com> 2024-04-29 11:01:21 +0000
commit1fc5c892343fe3b920df176364edb97c3ad435d6 (patch)
tree73c4c59b4f131b8c514fda698df6f7767af0afa9 /libs/input/KeyLayoutMap.cpp
parent951e73500c545b4d3ca995440d05f00dd7d6df07 (diff)
Fix flaky VibratorCallbackSchedulerTest
Use TestCounter to wait on scheduled callbacks with a timeout. The VibratorCallbackScheduler destructor joins on the scheduler thread to wait for the main loop to finish, but the conditional variable is waiting indefinitely without a predicate, which can cause it sometimes to miss the notify call from the destructor and get stuck. Adding a predicate condition fixes the VibratorCallbackSchedulerTest flakiness for the timeout "No test results." failures. Bug: 335951228 Bug: 335577082 Change-Id: If1af34f70de9fa5175aa38ebfb22f5b6d9112272 Merged-In: Id9501c10fe5209003d9b74b0f39f2bcf87de05c2 Merged-In: Ib519c3e91608c7373b2999fc596dab3413226a1e Test: atest --rerun-until-failure 1000 VibratorCallbackSchedulerTest
Diffstat (limited to 'libs/input/KeyLayoutMap.cpp')
0 files changed, 0 insertions, 0 deletions