commit | 6c0de2bb775bde4ba63f4190b90c4e1814040dd8 | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Thu Apr 11 16:59:22 2024 +0000 |
committer | Prabir Pradhan <prabirmsp@google.com> | Thu Apr 11 16:59:22 2024 +0000 |
tree | 0f248c85ae3ba0f7eafcf40ecf0242def19d5a5d | |
parent | 5013f984702088a0565029ed0dcb447c897be2ed [diff] |
InputTracingTest: Fix test flakiness There was a bug in the logic for tracking when the tracing thread is idle. The thread can only be idle when the queue is empty, so prevent it from being marked as idle when there are still events left to be processed. Also, a waitForTracerIdle() was missing in the TraceWindowDispatch test. Bug: 333544493 Test: InputTracingTest passes 10000 times Change-Id: I90feaeefc80d1a0e43732ee7e75d4074a9634bd7