mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
ASSERT error check in brightness test
Without ASSERT the next call to take the first element will crash the instrumentation for the tests. BUG: 210151839 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I2c78b9130661e543e62138c064ab15dd79180920
This commit is contained in:
@@ -1499,7 +1499,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) {
|
||||
execute();
|
||||
{
|
||||
const auto errors = mReader.takeErrors();
|
||||
EXPECT_EQ(1, errors.size());
|
||||
ASSERT_EQ(1, errors.size());
|
||||
EXPECT_EQ(IComposerClient::EX_BAD_PARAMETER, errors[0].errorCode);
|
||||
}
|
||||
|
||||
@@ -1507,7 +1507,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) {
|
||||
execute();
|
||||
{
|
||||
const auto errors = mReader.takeErrors();
|
||||
EXPECT_EQ(1, errors.size());
|
||||
ASSERT_EQ(1, errors.size());
|
||||
EXPECT_EQ(IComposerClient::EX_BAD_PARAMETER, errors[0].errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user