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

Commit fba442a6 authored by Kevin Rocard's avatar Kevin Rocard
Browse files

Audio HAL: Detect openDevice failure



The result status was not checked.

Test: Run test on target
Bug: 36311550

Change-Id: I197b52d0b5a1276d3e3beba105bb91639f89e060
Signed-off-by: default avatarKevin Rocard <krocard@google.com>
parent 6f22680d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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(); });