Fix OffloadControlHidlTestBase.AdditionalStopsWithInitReturnFalse

This test is testing that subsequent calls to stopOffload fail.
Therefore, don't fail if the first call fails. Only fail if the
subsequent calls fail

Bug: 77996655
Test: OffloadControlHidlTestBase.AdditionalStopsWithInitReturnFalse passes
Change-Id: I819a2942cc9bb2bca5cf0f603bb7e2b2b9b03d23
This commit is contained in:
Lorenzo Colitti 2018-05-11 16:38:31 +09:00
parent 5f9aec4f54
commit d14d8e4759

View file

@ -281,7 +281,7 @@ TEST_F(OffloadControlHidlTestBase, AdditionalStopsWithInitReturnFalse) {
return;
}
SCOPED_TRACE("Expecting stopOffload to succeed");
stopOffload(ExpectBoolean::True); // balance out initOffload(true)
stopOffload(ExpectBoolean::Ignored); // balance out initOffload(true)
SCOPED_TRACE("Expecting stopOffload to fail the first time");
stopOffload(ExpectBoolean::False);
SCOPED_TRACE("Expecting stopOffload to fail the second time");