Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 53f2200e authored by Anthony Stange's avatar Anthony Stange Committed by Brian Duddie
Browse files

Verify mPollThread is joinable before detaching

If HidlSetUp() bails before startPollingThread() is called (which can
happen if the HAL isn't implemented on the given device), mPollThread
will initialize with the default constructor resulting in joinable()
returning false which means calling detach() throws an exception.

Checking joinable() before detaching allows the test suite to be skipped
successfully.

Fixes: 136736906
Test: Run vts-tradefed on VtsHalSensorsV1_0Target and verify that it is
    skipped successfully on a device that doesn't support HAL 1.0

Merged-In: Ie685ae2dc314edb8df2f3cc7112141a2f5e46008
Change-Id: Ie685ae2dc314edb8df2f3cc7112141a2f5e46008
parent f4077b35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment