Home
last modified time | relevance | path

Searched refs:ASSERT_GT (Results 1 – 25 of 80) sorted by relevance

1234

/linux/tools/testing/selftests/net/
H A Dbind_timewait.c50 ASSERT_GT(server_fd, 0); in create_timewait_socket()
62 ASSERT_GT(client_fd, 0); in create_timewait_socket()
69 ASSERT_GT(child_fd, 0); in create_timewait_socket()
83 ASSERT_GT(fd, 0);
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcustom_sec_handlers.c104 ASSERT_GT(abc1_id, 0, "abc1_id"); in test_custom_sec_handlers()
105 ASSERT_GT(abc2_id, 0, "abc2_id"); in test_custom_sec_handlers()
106 ASSERT_GT(custom_id, 0, "custom_id"); in test_custom_sec_handlers()
120 if (!ASSERT_GT(fallback_id, 0, "fallback_id") /* || !ASSERT_GT(kprobe_id, 0, "kprobe_id")*/) { in test_custom_sec_handlers()
H A Dperf_link.c62 ASSERT_GT(info.id, 0, "link_id"); in serial_test_perf_link()
63 ASSERT_GT(info.prog_id, 0, "link_prog_id"); in serial_test_perf_link()
67 ASSERT_GT(skel->bss->run_cnt, 0, "run_cnt"); in serial_test_perf_link()
H A Dlibbpf_str.c34 if (!ASSERT_GT(id, 0, "bpf_attach_type_id")) in test_libbpf_bpf_attach_type_str()
79 if (!ASSERT_GT(id, 0, "bpf_link_type_id")) in test_libbpf_bpf_link_type_str()
124 if (!ASSERT_GT(id, 0, "bpf_map_type_id")) in test_libbpf_bpf_map_type_str()
181 if (!ASSERT_GT(id, 0, "bpf_prog_type_id")) in test_libbpf_bpf_prog_type_str()
H A Dverifier_log.c18 if (!ASSERT_GT(prog_fd, 0, tag)) in check_prog_load()
83 if (!ASSERT_GT(fixed_log_sz, 50, "fixed_log_sz")) in verif_log_subtest()
186 ASSERT_GT(log_true_sz_fixed, 0, "log_true_sz_fixed"); in verif_log_subtest()
265 ASSERT_GT(fd, 0, "btf_load_success"); in load_btf()
284 if (!ASSERT_GT(res, 0, "btf_add_int_id")) in verif_btf_log_subtest()
309 if (!ASSERT_GT(fixed_log_sz, 50, "fixed_log_sz")) in verif_btf_log_subtest()
370 ASSERT_GT(log_true_sz_fixed, 0, "log_true_sz_fixed"); in verif_btf_log_subtest()
H A Dunpriv_bpf_disabled.c90 ASSERT_GT(perf_buffer__poll(perfbuf, 100), -1, "perf_buffer__poll"); in test_unpriv_bpf_disabled_positive()
97 if (!ASSERT_GT(map_fds[i], -1, "obj_get")) in test_unpriv_bpf_disabled_positive()
131 ASSERT_GT(link_fd, 0, "link_create"); in test_unpriv_bpf_disabled_positive()
209 ASSERT_GT(btf__add_int(btf, "int", 4, 0), 0, "unpriv_int_type")) { in test_unpriv_bpf_disabled_negative()
280 ASSERT_GT(prog_id, 0, "valid_prog_id"); in test_unpriv_bpf_disabled()
H A Dtrace_vprintk.c36 if (!ASSERT_GT(bss->trace_vprintk_ran, 0, "bss->trace_vprintk_ran")) in serial_test_trace_vprintk()
39 if (!ASSERT_GT(bss->trace_vprintk_ret, 0, "bss->trace_vprintk_ret")) in serial_test_trace_vprintk()
H A Dtrace_printk.c43 if (!ASSERT_GT(bss->trace_printk_ran, 0, "bss->trace_printk_ran")) in serial_test_trace_printk()
46 if (!ASSERT_GT(bss->trace_printk_ret, 0, "bss->trace_printk_ret")) in serial_test_trace_printk()
H A Dtest_bpf_ma.c31 if (!ASSERT_GT(id, 0, tname)) in do_bpf_ma_test()
39 if (!ASSERT_GT(id, 0, tname)) in do_bpf_ma_test()
H A Dsyscall.c39 ASSERT_GT(ctx.map_fd, 0, "ctx.map_fd"); in test_syscall_load_prog()
40 ASSERT_GT(ctx.prog_fd, 0, "ctx.prog_fd"); in test_syscall_load_prog()
H A Dtoken.c382 if (!ASSERT_GT(token_fd, 0, "child_token_create")) { in child()
506 if (!ASSERT_GT(token_fd, 0, "token_create")) { in userns_map_create()
555 if (!ASSERT_GT(map_fd, 0, "stack_map_w_token_w_cap_bpf")) { in userns_map_create()
577 if (!ASSERT_GT(token_fd, 0, "token_create")) { in userns_btf_load()
595 ASSERT_GT(btf__add_int(btf, "int", 4, 0), 0, "int_type"); in userns_btf_load()
624 if (!ASSERT_GT(btf_fd, 0, "token_and_cap_success")) in userns_btf_load()
653 if (!ASSERT_GT(token_fd, 0, "token_create")) { in userns_prog_load()
668 if (!ASSERT_GT(prog_fd, 0, "prog_fd")) { in userns_prog_load()
H A Dbuild_id.c56 if (!ASSERT_GT(skel->bss->res_nofault, 0, "res")) in subtest_nofault()
92 if (!ASSERT_GT(skel->bss->res_sleepable, 0, "res")) in subtest_sleepable()
H A Dmodule_fentry_shadow.c92 if (!ASSERT_GT(btf_id[0], 0, "btf_find_by_name")) in test_module_fentry_shadow()
96 if (!ASSERT_GT(btf_id[1], 0, "btf_find_by_name")) in test_module_fentry_shadow()
H A Dbpf_tcp_ca.c419 ASSERT_GT(saved_ca1_cnt, 0, "ca1_ca1_cnt"); in test_update_ca()
426 ASSERT_GT(skel->bss->ca2_cnt, 0, "ca2_ca2_cnt"); in test_update_ca()
457 ASSERT_GT(saved_ca1_cnt, 0, "ca1_ca1_cnt"); in test_update_wrong()
463 ASSERT_GT(skel->bss->ca1_cnt, saved_ca1_cnt, "ca2_ca1_cnt"); in test_update_wrong()
495 ASSERT_GT(skel->bss->ca1_cnt, 0, "ca1_ca1_cnt"); in test_mixed_links()
H A Dtc_redirect.c231 if (!ASSERT_GT(result->ifindex_src, 0, "ifindex_src")) in netns_setup_links_and_routes()
235 if (!ASSERT_GT(result->ifindex_src_fwd, 0, "ifindex_src_fwd")) in netns_setup_links_and_routes()
239 if (!ASSERT_GT(result->ifindex_dst, 0, "ifindex_dst")) in netns_setup_links_and_routes()
243 if (!ASSERT_GT(result->ifindex_dst_fwd, 0, "ifindex_dst_fwd")) in netns_setup_links_and_routes()
841 ASSERT_GT(dtimes[EGRESS_FWDNS_P100], 0, in test_tcp_clear_dtime()
845 ASSERT_GT(dtimes[EGRESS_ENDHOST], 0, in test_tcp_clear_dtime()
847 ASSERT_GT(dtimes[INGRESS_ENDHOST], 0, in test_tcp_clear_dtime()
880 ASSERT_GT(dtimes[i], 0, dtime_cnt_str(t, i)); in test_tcp_dtime()
909 ASSERT_GT(dtimes[i], 0, dtime_cnt_str(t, i)); in test_udp_dtime()
1199 if (!ASSERT_GT(ifindex, 0, "if_indextoname tun_fwd")) in test_tc_redirect_peer_l3()
H A Dbtf_dump.c425 ASSERT_GT(btf__add_float(btf, "test_float", 4), 0, "add float"); in test_btf_dump_float_data()
433 ASSERT_GT(btf__add_float(btf, "test_double", 8), 0, "add_double"); in test_btf_dump_float_data()
441 ASSERT_GT(btf__add_float(btf, "test_long_double", 16), 0, "add long double"); in test_btf_dump_float_data()
646 if (ASSERT_GT(type_id, 0, "find type id")) { in test_btf_dump_struct_data()
747 if (ASSERT_GT(type_id, 0, "find fs_context")) { in test_btf_dump_struct_data()
775 if (ASSERT_GT(type_id, 0, "find struct sk_buff")) { in test_btf_dump_struct_data()
824 if (!ASSERT_GT(type_id, 0, "find type id")) in test_btf_datasec()
H A Dlibbpf_probes.c20 if (!ASSERT_GT(id, 0, "bpf_prog_type_id")) in test_libbpf_probe_prog_types()
60 if (!ASSERT_GT(id, 0, "bpf_map_type_id")) in test_libbpf_probe_map_types()
H A Dlinked_list.c286 if (!ASSERT_GT(bpf_rb_node_btf_id, 0, "btf__add_struct bpf_rb_node")) in list_and_rb_node_same_struct()
291 if (!ASSERT_GT(bpf_refcount_btf_id, 0, "btf__add_struct bpf_refcount")) in list_and_rb_node_same_struct()
296 if (!ASSERT_GT(id, 0, "btf__add_struct bar")) in list_and_rb_node_same_struct()
311 if (!ASSERT_GT(foo_btf_id, 0, "btf__add_struct foo")) in list_and_rb_node_same_struct()
320 if (!ASSERT_GT(id, 0, "btf__add_decl_tag contains:bar:a")) in list_and_rb_node_same_struct()
H A Dcore_kern.c17 if (!ASSERT_GT(link_fd, 0, "attach(core_relo_proto)")) in test_core_kern_lskel()
H A Dassign_reuse.c30 ASSERT_GT(cookie, 0, "cookie_invalid"); in cookie()
43 ASSERT_GT(fd_cl, 0, "create_client"); in echo_test_udp()
H A Dglobal_map_resize.c51 if (!ASSERT_GT(array_len, 1, "array_len")) in global_map_resize_bss_subtest()
121 if (!ASSERT_GT(array_len, 1, "array_len")) in global_map_resize_data_subtest()
H A Dcrypto_sanity.c112 if (!ASSERT_GT(qdisc_hook.ifindex, 0, "if_nametoindex lo")) in test_crypto_sanity()
121 if (!ASSERT_GT(pfd, 0, "skb_crypto_setup fd")) in test_crypto_sanity()
/linux/tools/testing/selftests/filesystems/eventfd/
H A Deventfd_test.c67 ASSERT_GT(flags, -1); in TEST()
81 ASSERT_GT(flags, -1); in TEST()
96 ASSERT_GT(flags, -1); in TEST()
101 ASSERT_GT(flags, -1); in TEST()
175 ASSERT_GT(ret, -1); in TEST()
/linux/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c123 ASSERT_GT(len, sizeof(*udr)); in render_response()
155 ASSERT_GT(ret, 0); in receive_response()
172 ASSERT_GT(ret, 0);
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c426 ASSERT_GT(fd, 0); in FIXTURE_SETUP()
487 ASSERT_GT(old_flags, 0); in TEST_F()
548 ASSERT_GT(old_flags, 0); in TEST_F()
584 ASSERT_GT(old_flags, 0); in TEST_F()
679 ASSERT_GT(old_flags, 0); in TEST_F()
735 ASSERT_GT(old_flags1, 0); in TEST_F()
738 ASSERT_GT(old_flags2, 0); in TEST_F()
787 ASSERT_GT(old_flags, 0); in TEST_F()
914 ASSERT_GT(old_flags, 0); in TEST_F()
1459 ASSERT_GT(fd, 0); in TEST_F()
[all …]

1234