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
committerAnthony Stange <stange@google.com>2019-07-15 19:17:25 +0000
commit65945cfb150ee6f046daa472b4ce71729ee69f1b (patch)
tree85acf91546c9ec3b070d9827bd90d020547f917d /identity/support/src/cppbor_parse.cpp
parentc69700441e8d48607ab186e427da18fe094ed7e6 (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 Change-Id: Ie685ae2dc314edb8df2f3cc7112141a2f5e46008
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions