summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorAnthony Stange <stange@google.com>2019-07-12 17:55:30 -0400
committerBrian Duddie <bduddie@google.com>2019-11-14 23:04:44 -0800
commit53f2200ea463d90ddc678b3a7855b3014ad1923c (patch)
tree5f9d8416ca8e46e90efde3f27eb85a95c718fbb9 /identity/support/src/cppbor_parse.cpp
parentf4077b35f37ac6d303ff17c665554f506d320d3f (diff)
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
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions