OSDN Git Service

Don't expect stopOffload to succeed if interface doesn't exist.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 23 Oct 2017 09:46:56 +0000 (18:46 +0900)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 27 Oct 2017 14:48:02 +0000 (14:48 +0000)
commit7d47ed708ea3f2d372347584925a3ab6a8b20852
tree37c6f008c944c7b379545bf749796644af5b8377
parent6f11e984b1373c22a1601d95b4fe647271479929
Don't expect stopOffload to succeed if interface doesn't exist.

The AdditionalStopsWithInitReturnFalse test inits offload and
then checks that stopOffload returns true. However, the HAL is
allowed to return false to stopOffload if no upstream was ever
successfully programmed.

To ensure this test doesn't fail in the common case that the
interface is not up, don't expect stopOffload to return true in
this case.

Bug: 67439856
Test: VtsHalTetheroffloadControlV1_0TargetTest passes with and without mobile data connection
Change-Id: I245f9e3e4376a7799572a3b3967e2bf6c52b5e4d
(cherry picked from commit 3189d9de81c937d495482fa3dacc196878cfcda1)
tetheroffload/control/1.0/vts/functional/VtsHalTetheroffloadControlV1_0TargetTest.cpp