From ec6505edd62380f2a3060a12e0857c8d91c61359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Sun, 18 Dec 2022 19:48:07 +0000 Subject: [PATCH] remove SKIP_IF_BPF_NOT_SUPPORTED MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is only user left, let us simply move the macro definition into the resolv_integration_test.cpp file. Test: TreeHugger Signed-off-by: Maciej Żenczykowski Change-Id: I6eb66abaa7f6392ab43300e5087e4277491e44c9 --- staticlibs/native/bpf_headers/include/bpf/BpfUtils.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h b/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h index a6e4783d59..dc4fb17970 100644 --- a/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h +++ b/staticlibs/native/bpf_headers/include/bpf/BpfUtils.h @@ -115,11 +115,5 @@ static inline bool isAtLeastKernelVersion(unsigned major, unsigned minor, unsign return kernelVersion() >= KVER(major, minor, sub); } -#define SKIP_IF_BPF_NOT_SUPPORTED \ - do { \ - if (!android::bpf::isAtLeastKernelVersion(4, 9, 0)) \ - GTEST_SKIP() << "Skip: bpf is not supported."; \ - } while (0) - } // namespace bpf } // namespace android