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

Commit 58767473 authored by Jimmy Chen's avatar Jimmy Chen Committed by Automerger Merge Worker
Browse files

wifi: skip tests if RTT is not supported am: c578a913

Change-Id: I45c6f6199a966139ab6dff69fc54c12a593ceb2a
parents 3ac579d3 c578a913
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -64,6 +64,14 @@ class WifiRttControllerHidlTest : public ::testing::TestWithParam<std::string> {

        wifi_rtt_controller_ = getWifiRttController();
        ASSERT_NE(nullptr, wifi_rtt_controller_.get());

        // Check RTT support before we run the test.
        std::pair<WifiStatus, RttCapabilities> status_and_caps;
        status_and_caps =
            HIDL_INVOKE(wifi_rtt_controller_, getCapabilities_1_4);
        if (status_and_caps.first.code == WifiStatusCode::ERROR_NOT_SUPPORTED) {
            GTEST_SKIP() << "Skipping this test since RTT is not supported.";
        }
    }

    virtual void TearDown() override { stopWifi(GetInstanceName()); }