Skip to content

Commit

Permalink
Fix second test failure due to wrong link type
Browse files Browse the repository at this point in the history
  • Loading branch information
lmb committed Dec 16, 2024
1 parent 7f14da7 commit 0d2ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/libbpf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0d2ff77

Please sign in to comment.