File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tools/testing/selftests/bpf Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1401,6 +1401,8 @@ static void test_map_rdonly(void)
1401
1401
/* Check that key=2 is not found. */
1402
1402
assert (bpf_map_lookup_elem (fd , & key , & value ) == -1 && errno == ENOENT );
1403
1403
assert (bpf_map_get_next_key (fd , & key , & value ) == -1 && errno == ENOENT );
1404
+
1405
+ close (fd );
1404
1406
}
1405
1407
1406
1408
static void test_map_wronly (void )
@@ -1423,6 +1425,8 @@ static void test_map_wronly(void)
1423
1425
/* Check that key=2 is not found. */
1424
1426
assert (bpf_map_lookup_elem (fd , & key , & value ) == -1 && errno == EPERM );
1425
1427
assert (bpf_map_get_next_key (fd , & key , & value ) == -1 && errno == EPERM );
1428
+
1429
+ close (fd );
1426
1430
}
1427
1431
1428
1432
static void prepare_reuseport_grp (int type , int map_fd , size_t map_elem_size ,
You can’t perform that action at this time.
0 commit comments