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

Commit 5bca5bad authored by Blair Prescott's avatar Blair Prescott Committed by Blair Prescott
Browse files

wifi: Fix VTS error for non-p2p devices

Fix VtsHalWifiSupplicantP2pV1_0TargetTest to skip tests
in such a way that VTS reports the module as complete on
devices that don't support Wifi Direct.

Bug: 170326147
Test: run vts -m VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: Ia418c4bb72f4772422d724636453395c4ba9fb2d
parent 33daacb4
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -18,9 +18,6 @@
#include "supplicant_hidl_test_utils.h"
#include "supplicant_hidl_test_utils.h"


int main(int argc, char** argv) {
int main(int argc, char** argv) {
    if (!::testing::deviceSupportsFeature("android.hardware.wifi.direct"))
        return 0;

    ::testing::InitGoogleTest(&argc, argv);
    ::testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
    return RUN_ALL_TESTS();
}
}