commit | b9b52d009c6c19fa3f96ab3e40994f3ecf56a080 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Sat Mar 18 14:22:39 2023 -0700 |
committer | Yu Shan <shanyu@google.com> | Mon Mar 20 11:07:03 2023 -0700 |
tree | ec5613046d731e0d46cc9a05163d3895661031c9 | |
parent | f9c2c606acb33227c641325e298f39c6cc75e0a1 [diff] |
Fix CTS CarPerfMgrTest flakiness. If the current thread priority is not one of SCHED_DEFAULT, SCHED_FIFO or SCHED_RR, getThreadPriority will throw IllegalStateException which will fail the test. Modify the test to capture the exception and skip the test if this happens. Test: atest android.car.cts.CarPerformanceManagerTest Bug: 272150354 Change-Id: Iddb71a262f30d0f35ce0602ff64c1cd9282bc225