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

Commit 5a3e81c7 authored by Ahmed ElArabawy's avatar Ahmed ElArabawy
Browse files

Fix vts test VtsHalWifiV1_2TargetTest

VTS test for WifiChipHidlTest#registerEventCallback_1_2 was failing
on the default implementation of the 1.4 HAL. This is because
registerEventCallback_1_2() is no longer supported due to the upgrade
to registerEventCallback_1_4().

This commit fixes this VTS test error by allowing ERROR_NOT_SUPPORTED
as a valid test output.

Bug: 146020950
Test: atest VtsHalWifiV1_2TargetTest

Change-Id: Ia58b0dad5ed753c22d620b0fad6904d634e01e72
parent fe54bf56
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -176,7 +176,11 @@ TEST_P(WifiChipHidlTest, registerEventCallback_1_2) {
    sp<WifiChipEventCallback> wifiChipEventCallback = new WifiChipEventCallback();
    const auto& status =
        HIDL_INVOKE(wifi_chip_, registerEventCallback_1_2, wifiChipEventCallback);
    EXPECT_EQ(WifiStatusCode::SUCCESS, status.code);

    if (status.code != WifiStatusCode::SUCCESS) {
        EXPECT_EQ(WifiStatusCode::ERROR_NOT_SUPPORTED, status.code);
        return;
    }
}

INSTANTIATE_TEST_SUITE_P(