Skip to content

Commit

Permalink
Check for new error code
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Oct 4, 2024
1 parent 2eeb06c commit b206e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/api_test/api_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ TEST_CASE("native_module_handle_test", "[native_tests]")

// Try to load the same native module again, which should fail.
result = _program_load_helper(file_name, BPF_PROG_TYPE_BIND, EBPF_EXECUTION_NATIVE, &object2, &program_fd);
REQUIRE(result == -ENOENT);
REQUIRE(result == -EBUSY);

// Close the native module handle. That should result in the module to be unloaded.
REQUIRE(_close(native_module_fd) == 0);
Expand Down

0 comments on commit b206e64

Please sign in to comment.