Home
last modified time | relevance | path

Searched refs:ASSERT_GE (Results 1 – 25 of 179) sorted by relevance

12345678

/tools/testing/selftests/filesystems/overlayfs/
A Dset_layers_via_fds.c58 ASSERT_GE(fd_context, 0); in TEST_F()
62 ASSERT_GE(fd_tmpfs, 0); in TEST_F()
179 ASSERT_GE(fd_tmpfs, 0); in TEST_F()
193 ASSERT_GE(fd_work, 0); in TEST_F()
282 ASSERT_GE(pid, 0); in TEST_F()
295 ASSERT_GE(pid, 0); in TEST_F()
308 ASSERT_GE(pid, 0); in TEST_F()
348 ASSERT_GE(ret, 0); in TEST_F()
351 ASSERT_GE(pid, 0); in TEST_F()
500 ASSERT_GE(pid, 0); in TEST_F()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dfd_array.c124 if (!ASSERT_GE(map_fd, 0, "new_map")) in load_test_prog()
156 if (!ASSERT_GE(prog_fd, 0, "BPF_PROG_LOAD")) in check_fd_array_cnt__no_fd_array()
176 if (!ASSERT_GE(extra_fds[0], 0, "new_map")) in check_fd_array_cnt__fd_array_ok()
179 if (!ASSERT_GE(extra_fds[1], 0, "new_map")) in check_fd_array_cnt__fd_array_ok()
182 if (!ASSERT_GE(prog_fd, 0, "BPF_PROG_LOAD")) in check_fd_array_cnt__fd_array_ok()
215 if (!ASSERT_GE(extra_fds[0], 0, "new_map")) in check_fd_array_cnt__duplicated_maps()
218 if (!ASSERT_GE(extra_fds[1], 0, "new_map")) in check_fd_array_cnt__duplicated_maps()
221 if (!ASSERT_GE(prog_fd, 0, "BPF_PROG_LOAD")) in check_fd_array_cnt__duplicated_maps()
254 if (!ASSERT_GE(extra_fds[0], 0, "new_map")) in check_fd_array_cnt__referenced_maps_in_fd_array()
307 if (!ASSERT_GE(extra_fds[0], 0, "new_btf")) in check_fd_array_cnt__referenced_btfs()
[all …]
A Dsock_destroy.c22 if (!ASSERT_GE(iter_fd, 0, "create_iter")) in start_iter_sockets()
27 ASSERT_GE(len, 0, "read"); in start_iter_sockets()
40 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_client()
44 if (!ASSERT_GE(clien, 0, "connect_to_fd")) in test_tcp_client()
48 if (!ASSERT_GE(accept_serv, 0, "serv accept")) in test_tcp_client()
77 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_server()
85 if (!ASSERT_GE(clien, 0, "connect_to_fd")) in test_tcp_server()
89 if (!ASSERT_GE(accept_serv, 0, "serv accept")) in test_tcp_server()
118 if (!ASSERT_GE(serv, 0, "start_server")) in test_udp_client()
122 if (!ASSERT_GE(clien, 0, "connect_to_fd")) in test_udp_client()
[all …]
A Dlsm_cgroup.c45 ASSERT_GE(fd, 0, "prog_get_fd_by_id"); in query_prog_cnt()
80 if (!ASSERT_GE(cgroup_fd3, 0, "create empty cgroup")) in test_lsm_cgroup_functional()
88 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_lsm_cgroup_functional()
184 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) in test_lsm_cgroup_functional()
201 ASSERT_GE(fd, 0, "socket(AF_PACKET, ..., 0)"); in test_lsm_cgroup_functional()
217 ASSERT_GE(listen_fd, 0, "start_server"); in test_lsm_cgroup_functional()
219 ASSERT_GE(client_fd, 0, "connect_to_fd"); in test_lsm_cgroup_functional()
221 ASSERT_GE(accepted_fd, 0, "accept"); in test_lsm_cgroup_functional()
275 if (!ASSERT_GE(fd, 0, "socket(SOCK_STREAM)")) in test_lsm_cgroup_functional()
291 ASSERT_GE(bpf_prog_detach2(alloc_prog_fd, cgroup_fd, in test_lsm_cgroup_functional()
[all …]
A Dcgroup_v1v2.c20 if (!ASSERT_GE(port, 0, "get_socket_local_port")) in run_test()
60 if (!ASSERT_GE(server_fd, 0, "server_fd")) in test_cgroup_v1v2()
63 if (!ASSERT_GE(client_fd, 0, "client_fd")) { in test_cgroup_v1v2()
72 if (!ASSERT_GE(cgroup_fd, 0, "cgroup_fd")) in test_cgroup_v1v2()
75 if (!ASSERT_GE(server_fd, 0, "server_fd")) { in test_cgroup_v1v2()
A Dsetget_sockopt.c51 if (!ASSERT_GE(sfd, 0, "start_server")) in test_tcp()
55 if (!ASSERT_GE(cfd, 0, "connect_to_fd_server")) { in test_tcp()
79 if (!ASSERT_GE(sfd, 0, "start_server")) in test_udp()
83 ASSERT_GE(bss->nr_socket_post_create, 1, "nr_socket_post_create"); in test_udp()
98 if (!ASSERT_GE(sfd, 0, "start_server")) in test_ktls()
101 if (!ASSERT_GE(fd, 0, "connect_to_fd")) in test_ktls()
105 if (!ASSERT_GE(cfd, 0, "accept")) in test_ktls()
168 if (!ASSERT_GE(sfd, 0, "start_server")) in test_nonstandard_opt()
172 if (!ASSERT_GE(fd, 0, "connect_to_fd_server")) in test_nonstandard_opt()
185 if (!ASSERT_GE(cfd, 0, "accept")) in test_nonstandard_opt()
A Dlwt_redirect.c79 if (!ASSERT_GE(link_index, 0, "if_nametoindex")) in ping_dev()
100 if (!ASSERT_GE(s, 0, "socket(AF_PACKET)")) in new_packet_sock()
104 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) { in new_packet_sock()
199 if (!ASSERT_GE(tap_fd, 0, "open_tuntap")) in setup_redirect_target()
203 if (!ASSERT_GE(target_index, 0, "if_nametoindex")) in setup_redirect_target()
234 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_normal()
248 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_normal_nomac()
264 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in __test_lwt_redirect_dev_down()
295 if (!ASSERT_GE(tap_fd, 0, "setup_redirect_target")) in test_lwt_redirect_dev_carrier_down()
A Dip_check_defrag.c117 if (!ASSERT_GE(err, 0, "sendto frag_0")) in send_frags()
121 if (!ASSERT_GE(err, 0, "sendto frag_1")) in send_frags()
125 if (!ASSERT_GE(err, 0, "sendto frag_2")) in send_frags()
145 if (!ASSERT_GE(err, 0, "sendto frag6_0")) in send_frags6()
149 if (!ASSERT_GE(err, 0, "sendto frag6_1")) in send_frags6()
153 if (!ASSERT_GE(err, 0, "sendto frag6_2")) in send_frags6()
195 if (!ASSERT_GE(srv_fd, 0, "start_server")) in test_bpf_ip_check_defrag_ok()
204 if (!ASSERT_GE(client_tx_fd, 0, "client_socket")) in test_bpf_ip_check_defrag_ok()
213 if (!ASSERT_GE(client_rx_fd, 0, "client_socket")) in test_bpf_ip_check_defrag_ok()
255 if (!ASSERT_GE(len, 0, "server recvfrom")) in test_bpf_ip_check_defrag_ok()
[all …]
A Dlwt_reroute.c107 if (!ASSERT_GE(s, 0, "socket")) in overflow_fq()
158 if (!ASSERT_GE(tap_fd, 0, "open_tun")) in setup()
162 if (!ASSERT_GE(target_index, 0, "if_nametoindex")) in setup()
198 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_normal_xmit()
202 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_normal_xmit()
227 if (!ASSERT_GE(tun_fd, 0, "setup_reroute")) in test_lwt_reroute_qdisc_dropped()
233 if (!ASSERT_GE(ifindex, 0, "if_nametoindex")) in test_lwt_reroute_qdisc_dropped()
A Dcgroup_tcp_skb.c75 if (!ASSERT_GE(*client_fd, 0, "client_fd")) in talk_to_cgroup()
81 if (!ASSERT_GE(*listen_fd, 0, "listen_fd")) in talk_to_cgroup()
84 if (!ASSERT_GE(port, 0, "get_socket_local_port")) in talk_to_cgroup()
93 if (!ASSERT_GE(*service_fd, 0, "service_fd")) in talk_to_cgroup()
122 if (!ASSERT_GE(*listen_fd, 0, "listen_fd")) in talk_to_outside()
128 if (!ASSERT_GE(*client_fd, 0, "client_fd")) in talk_to_outside()
134 if (!ASSERT_GE(port, 0, "get_socket_local_port")) in talk_to_outside()
143 if (!ASSERT_GE(*service_fd, 0, "service_fd")) in talk_to_outside()
190 if (!ASSERT_GE(skel->bss->g_packet_count, saved_packet_count + 2, in close_connection()
207 if (!ASSERT_GE(skel->bss->g_packet_count, saved_packet_count + 2, in close_connection()
[all …]
A Dbpf_obj_pinning.c51 if (!ASSERT_GE(fs_fd, 0, "fs_fd")) in bpf_obj_pinning_detached()
61 if (!ASSERT_GE(mnt_fd, 0, "mnt_fd")) in bpf_obj_pinning_detached()
76 if (!ASSERT_GE(map_fd, 0, "map_fd")) in bpf_obj_pinning_detached()
90 if (!ASSERT_GE(map_fd2, 0, "map_get")) in bpf_obj_pinning_detached()
149 ASSERT_GE(pin_opts.path_fd, 0, "path_fd"); in validate_pin()
165 if (!ASSERT_GE(map_fd2, 0, "map_get")) in validate_pin()
214 ASSERT_GE(get_opts.path_fd, 0, "path_fd"); in validate_get()
220 if (!ASSERT_GE(map_fd2, 0, "map_get")) in validate_get()
251 if (!ASSERT_GE(map_fd, 0, "map_fd")) in bpf_obj_pinning_mounted()
A Dudp_limit.c15 if (!ASSERT_GE(cgroup_fd, 0, "cg-join")) in test_udp_limit()
33 if (!ASSERT_GE(fd1, 0, "socket(fd1)")) in test_udp_limit()
45 if (!ASSERT_GE(fd1, 0, "socket(fd1-again)")) in test_udp_limit()
A Dstacktrace_map_skip.c19 if (!ASSERT_GE(stackid_hmap_fd, 0, "stackid_hmap fd")) in test_stacktrace_map_skip()
23 if (!ASSERT_GE(stackmap_fd, 0, "stackmap fd")) in test_stacktrace_map_skip()
27 if (!ASSERT_GE(stack_amap_fd, 0, "stack_amap fd")) in test_stacktrace_map_skip()
A Dfexit_stress.c12 if (!ASSERT_GE(bpf_max_tramp_links, 1, "bpf_max_tramp_links")) in serial_test_fexit_stress()
42 if (!ASSERT_GE(fexit_fd[i], 0, "fexit load")) in serial_test_fexit_stress()
45 if (!ASSERT_GE(link_fd[i], 0, "fexit attach")) in serial_test_fexit_stress()
A Dsockopt_inherit.c53 if (!ASSERT_GE(err, 0, "listed on socket")) in server_thread()
61 if (!ASSERT_GE(client_fd, 0, "accept client")) in server_thread()
126 if (!ASSERT_GE(server_fd, 0, "start_server")) in run_test()
139 if (!ASSERT_GE(client_fd, 0, "connect_to_server")) in run_test()
167 if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup")) in test_sockopt_inherit()
A Dbpf_iter.c65 ASSERT_GE(len, 0, "read"); in do_dummy_read_opts()
117 ASSERT_GE(len, 0, "read_iterator"); in do_read_map_iter_fd()
340 if (!ASSERT_GE(pid, 0, "fork")) in test_task_sleepable()
501 if (!ASSERT_GE(err, 0, "read")) in do_btf_read()
618 if (!ASSERT_GE(len, 0, "read")) in do_read_with_fd()
916 if (!ASSERT_GE(len, 0, "read")) in test_bpf_hash_map()
999 if (!ASSERT_GE(len, 0, "read")) in test_bpf_percpu_hash_map()
1065 if (!ASSERT_GE(len, 0, "read")) in test_bpf_array_map()
1173 if (!ASSERT_GE(len, 0, "read")) in test_bpf_percpu_array_map()
1233 if (!ASSERT_GE(len, 0, "read")) in test_bpf_sk_storage_delete()
[all …]
/tools/testing/selftests/pidfd/
A Dpidfd_bind_mount.c38 ASSERT_GE(self->fd_tmp, 0); in FIXTURE_SETUP()
40 ASSERT_GE(self->pidfd, 0); in FIXTURE_SETUP()
41 ASSERT_GE(fstat(self->pidfd, &self->st1), 0); in FIXTURE_SETUP()
62 ASSERT_GE(fd_tree, 0); in TEST_F()
78 ASSERT_GE(pidfd, 0); in TEST_F()
80 ASSERT_GE(fstat(self->pidfd, &self->st2), 0); in TEST_F()
98 ASSERT_GE(fd_tree, 0); in TEST_F()
104 ASSERT_GE(fd_pidfd_mnt, 0); in TEST_F()
106 ASSERT_GE(fstat(fd_tree, &self->st2), 0); in TEST_F()
A Dpidfd_file_handle_test.c161 ASSERT_GE(pidfd, 0); in TEST_F()
169 ASSERT_GE(pidfd, 0); in TEST_F()
177 ASSERT_GE(pidfd, 0); in TEST_F()
208 ASSERT_GE(pidfd, 0); in TEST_F()
216 ASSERT_GE(pidfd, 0); in TEST_F()
224 ASSERT_GE(pidfd, 0); in TEST_F()
254 ASSERT_GE(pid, 0); in TEST_F()
290 ASSERT_GE(pidfd, 0); in TEST_F()
304 ASSERT_GE(pidfd, 0); in TEST_F()
329 ASSERT_GE(pidfd, 0); in TEST_F()
[all …]
/tools/testing/selftests/filesystems/
A Danon_inode_test.c17 ASSERT_GE(fd_context, 0); in TEST()
30 ASSERT_GE(fd_context, 0); in TEST()
43 ASSERT_GE(fd_context, 0); in TEST()
56 ASSERT_GE(fd_context, 0); in TEST()
58 ASSERT_GE(dup2(fd_context, 500), 0); in TEST()
/tools/testing/selftests/net/
A Dnetlink-dumps.c108 ASSERT_GE(netlink_sock, 0); in TEST()
138 ASSERT_GE(i, 10); in TEST()
141 ASSERT_GE(n, (ssize_t)sizeof(struct nlmsghdr)); in TEST()
182 ASSERT_GE(netlink_sock, 0); in TEST()
188 ASSERT_GE(n, (ssize_t)sizeof(struct nlmsghdr)); in TEST()
191 ASSERT_GE(n, (ssize_t)sizeof(struct nlmsghdr)); in TEST()
202 ASSERT_GE(netlink_sock, 0); in TEST()
218 ASSERT_GE(netlink_sock, 0); in TEST()
224 ASSERT_GE(mq_fd, 0); in TEST()
/tools/testing/selftests/filesystems/nsfs/
A Diterate_mntns.c56 ASSERT_GE(self->fd_mnt_ns[i], 0); in FIXTURE_SETUP()
76 ASSERT_GE(fd_mnt_ns_cur, 0); in TEST_F()
85 ASSERT_GE(fd_mnt_ns_next, 0); in TEST_F()
97 ASSERT_GE(fd_mnt_ns_cur, 0); in TEST_F()
106 ASSERT_GE(fd_mnt_ns_prev, 0); in TEST_F()
125 ASSERT_GE(fd_mnt_ns_next, 0); in TEST_F()
144 ASSERT_GE(fd_mnt_ns_prev, 0); in TEST_F()
/tools/testing/selftests/filesystems/epoll/
A Depoll_wakeup_test.c172 ASSERT_GE(efd, 0); in TEST()
203 ASSERT_GE(efd, 0); in TEST()
235 ASSERT_GE(efd, 0); in TEST()
273 ASSERT_GE(efd, 0); in TEST()
311 ASSERT_GE(efd, 0); in TEST()
350 ASSERT_GE(efd, 0); in TEST()
391 ASSERT_GE(efd, 0); in TEST()
437 ASSERT_GE(efd, 0); in TEST()
851 ASSERT_GE(efd[0], 0); in TEST()
3405 ASSERT_GE(efd, 0); in TEST()
[all …]
/tools/testing/selftests/filesystems/eventfd/
A Deventfd_test.c50 ASSERT_GE(fd, 0); in TEST()
64 ASSERT_GE(fd, 0); in TEST()
78 ASSERT_GE(fd, 0); in TEST()
93 ASSERT_GE(fd, 0); in TEST()
172 ASSERT_GE(fd, 0); in TEST()
199 ASSERT_GE(fd, 0); in TEST()
227 ASSERT_GE(fd, 0); in TEST()
256 ASSERT_GE(fd, 0); in TEST()
290 ASSERT_GE(fd, 0); in TEST()
/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c627 ASSERT_GE(fd, 0); in TEST_F()
676 ASSERT_GE(fd, 0); in TEST_F()
706 ASSERT_GE(dfd, 0); in TEST_F()
982 ASSERT_GE(fd, 0); in TEST_F()
1047 ASSERT_GE(img_fd, 0); in FIXTURE_SETUP()
1110 ASSERT_GE(fd, 0); in TEST_F()
1752 ASSERT_GE(fd_tmpfs, 0); in TEST_F()
1762 ASSERT_GE(fd_tree, 0); in TEST_F()
1906 ASSERT_GE(fd_tree, 0); in TEST_F()
1941 ASSERT_GE(fd_tree1, 0); in TEST_F()
[all …]
/tools/testing/selftests/coredump/
A Dstackdump_test.c379 ASSERT_GE(pid, 0); in TEST_F()
466 ASSERT_GE(pid, 0); in TEST_F()
515 ASSERT_GE(pid, 0); in TEST_F()
578 ASSERT_GE(pid, 0); in TEST_F()
830 ASSERT_GE(pid, 0); in TEST_F()
947 ASSERT_GE(pid, 0); in TEST_F()
1060 ASSERT_GE(pid, 0); in TEST_F()
1158 ASSERT_GE(pid, 0); in TEST_F()
1255 ASSERT_GE(pid, 0); in TEST_F()
1354 ASSERT_GE(pid, 0); in TEST_F()
[all …]

Completed in 48 milliseconds

12345678