commit | beb75c8ffd10bfe0a9391fe8f1cd4051018a6830 | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Thu Aug 11 07:34:08 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Aug 11 07:34:08 2022 +0000 |
tree | ee2e97a82d0290dfd367eeb40d9cdd5193005f1e | |
parent | 257cac20f8c96a63de3e8e3a07bb7cc25895d7a4 [diff] | |
parent | af0ae6785f1318c319f2ee1e590d5c77fea2fa89 [diff] |
fix wrong bpf path am: f979c8a094 Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/2181835 Change-Id: I1804b2f4f5a6dcbbd6949c15b46693f6d580eb96 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/staticlibs/native/tcutils/tests/tcutils_test.cpp b/staticlibs/native/tcutils/tests/tcutils_test.cpp index 32736d6..8129286 100644 --- a/staticlibs/native/tcutils/tests/tcutils_test.cpp +++ b/staticlibs/native/tcutils/tests/tcutils_test.cpp
@@ -113,12 +113,9 @@ TEST(LibTcUtilsTest, AddAndDeleteIngressPoliceFilter) { // TODO: this should use bpf_shared.h rather than hardcoding the path static constexpr char bpfProgPath[] = - "/sys/fs/bpf/prog_netd_schedact_ingress_account"; + "/sys/fs/bpf/netd_shared/prog_netd_schedact_ingress_account"; int fd = bpf::retrieveProgram(bpfProgPath); - if (fd == -1) { - // ingress policing is not supported. - return; - } + ASSERT_LE(3, fd); close(fd); const int errNOENT = isAtLeastKernelVersion(4, 19, 0) ? ENOENT : EINVAL;