mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 17:31:58 +00:00
Audio HAL: Detect openDevice failure
The result status was not checked. Test: Run test on target Bug: 36311550 Change-Id: I197b52d0b5a1276d3e3beba105bb91639f89e060 Signed-off-by: Kevin Rocard <krocard@google.com>
This commit is contained in:
@@ -171,6 +171,7 @@ public:
|
||||
sp<IDevice> baseDevice;
|
||||
ASSERT_OK(devicesFactory->openDevice(IDevicesFactory::Device::PRIMARY,
|
||||
returnIn(result, baseDevice)));
|
||||
ASSERT_OK(result);
|
||||
ASSERT_TRUE(baseDevice != nullptr);
|
||||
|
||||
environment->registerTearDown([]{ device.clear(); });
|
||||
|
||||
Reference in New Issue
Block a user