diff --git a/tests/unit/libbpf_test.cpp b/tests/unit/libbpf_test.cpp index 5f902c2d58..3c42b2628e 100644 --- a/tests/unit/libbpf_test.cpp +++ b/tests/unit/libbpf_test.cpp @@ -2165,7 +2165,7 @@ TEST_CASE("enumerate link IDs", "[libbpf]") REQUIRE(errno == ENOENT); } -TEST_CASE("enumerate link IDs with bpf", "[libbpf]") +TEST_CASE("enumerate link IDs with bpf", "[libbpf][bpf]") { _test_helper_end_to_end test_helper; test_helper.initialize(); @@ -2262,7 +2262,7 @@ TEST_CASE("enumerate link IDs with bpf", "[libbpf]") attr.info.info_len = sizeof(info); REQUIRE(bpf(BPF_OBJ_GET_INFO_BY_FD, &attr, sizeof(attr)) == 0); REQUIRE(info.id == id1); - + // Get info on the second link. memset(&attr, 0, sizeof(attr)); info = {}; @@ -2270,7 +2270,9 @@ 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); + // TODO: Should this be BPF_LINK_TYPE_PLAIN? + // See https://github.com/microsoft/ebpf-for-windows/issues/4096 + REQUIRE(info.type == BPF_LINK_TYPE_UNSPEC); REQUIRE(info.id == id2); REQUIRE(info.prog_id != 0);