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

Commit c484e5b6 authored by Jimmy Chen's avatar Jimmy Chen
Browse files

p2p: skip p2p test if p2p is not supported

Bug: 200064365
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Id35b36108a012ca1adace7c6ce87ec31813fba91
parent e70b0bf9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -49,6 +49,9 @@ class SupplicantP2pIfaceHidlTest : public SupplicantHidlTestBaseV1_4 {
   public:
    virtual void SetUp() override {
        SupplicantHidlTestBaseV1_4::SetUp();
        if (!isP2pOn_) {
            GTEST_SKIP() << "Wi-Fi Direct is not supported, skip this test.";
        }
        p2p_iface_ = getSupplicantP2pIface_1_4(supplicant_);
        ASSERT_NE(p2p_iface_.get(), nullptr);
    }