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

Commit 1667d405 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Fix misuse of ASSERT() within a function

ASSERT() is effectively a `return` statement. So if
ASSERT() is used in a function called by a test case, it won't
stop the test case all together, but rather returns from the function
and continue to run the test case to completion.

Using ASSERT_NO_FATAL_FAILURE makes sure the rest of the test
case is skipped.

Also fix a wrong check in openEmptyDeviceSession.

Flag: TEST_ONLY
Test: run VtsAidlHalCameraProvider_TargetTest
Bug: 399939768
Change-Id: Id33e22b1e8eb76a2f7f02dcf7308c86c55aad68d
parent 7fbe1241
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment