From ff2fa261ef7f43eac7584d91451c9022da1e0c59 Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Tue, 12 Nov 2024 17:58:51 -0500 Subject: [PATCH] Fix second test failure due to wrong link type --- tests/unit/libbpf_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/libbpf_test.cpp b/tests/unit/libbpf_test.cpp index 6219982da8..a1b9a29ff4 100644 --- a/tests/unit/libbpf_test.cpp +++ b/tests/unit/libbpf_test.cpp @@ -2237,7 +2237,7 @@ TEST_CASE("enumerate link IDs with bpf", "[libbpf]") attr.info.info = (uintptr_t)&info; attr.info.info_len = sizeof(info); REQUIRE(bpf(BPF_OBJ_GET_INFO_BY_FD, &attr, sizeof(attr)) == 0); - REQUIRE(info.type == BPF_LINK_TYPE_PLAIN); + REQUIRE(info.type == BPF_LINK_TYPE_UNSPEC); REQUIRE(info.id == id1); REQUIRE(info.prog_id == 0);