Home
last modified time | relevance | path

Searched refs:ASSERT_FALSE (Results 1 – 25 of 28) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dstruct_ops_autocreate.c73 ASSERT_FALSE(bpf_program__autoload(skel->progs.test_2), "test_2 actual autoload"); in can_load_partial_object()
92 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map), "optional_map autocreate"); in optional_maps()
93 ASSERT_FALSE(bpf_map__autocreate(skel->maps.optional_map2), "optional_map2 autocreate"); in optional_maps()
124 ASSERT_FALSE(bpf_program__autoload(skel->progs.foo), "foo default autoload"); in autoload_and_shadow_vars()
125 ASSERT_FALSE(bpf_program__autoload(skel->progs.bar), "bar default autoload"); in autoload_and_shadow_vars()
135 ASSERT_FALSE(bpf_program__autoload(skel->progs.bar), "bar actual autoload"); in autoload_and_shadow_vars()
H A Dcustom_sec_handlers.c27 ASSERT_FALSE(true, "unexpected preload for abc"); in custom_prepare_load_prog()
48 ASSERT_FALSE(true, "unexpected cookie"); in custom_attach_prog()
134 ASSERT_FALSE(bpf_program__autoload(skel->progs.abc1), "abc1_autoload"); in test_custom_sec_handlers()
162 ASSERT_FALSE(skel->bss->abc1_called, "abc1_called"); in test_custom_sec_handlers()
167 ASSERT_FALSE(skel->bss->kprobe1_called, "kprobe1_called"); in test_custom_sec_handlers()
169 ASSERT_FALSE(skel->bss->xyz_called, "xyz_called"); in test_custom_sec_handlers()
H A Dcgroup_getset_retval.c46 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_set()
86 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_set_and_get()
123 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_default_zero()
166 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_default_zero_and_set()
215 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_override()
261 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_legacy_eperm()
312 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_setsockopt_legacy_no_override()
354 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_getsockopt_get()
396 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_getsockopt_override()
442 if (!ASSERT_FALSE(obj->bss->assertion_error, "assertion_error")) in test_getsockopt_retval_sync()
H A Dautoattach.c18 ASSERT_FALSE(bpf_program__autoattach(skel->progs.prog2), "autoattach_prog2"); in test_autoattach()
25 ASSERT_FALSE(skel->bss->prog2_called, "attached_prog2"); in test_autoattach()
H A Dtest_mmap_inner_array.c35 ASSERT_FALSE(skel->bss->outer_map_match, "outer map match 1"); in test_mmap_inner_array()
36 ASSERT_FALSE(skel->bss->done, "done 1"); in test_mmap_inner_array()
H A Dtailcalls.c344 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
349 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
361 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_count()
366 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_count()
1039 if (!ASSERT_FALSE(map_fd < 0, "find jmp_table map fd")) in test_tailcall_bpf2bpf_fentry_entry()
1047 if (!ASSERT_FALSE(prog_fd < 0, "find classifier_0 prog fd")) in test_tailcall_bpf2bpf_fentry_entry()
1081 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_bpf2bpf_fentry_entry()
1086 if (!ASSERT_FALSE(data_fd < 0, "find tailcall.bss map fd")) in test_tailcall_bpf2bpf_fentry_entry()
1095 if (!ASSERT_FALSE(!data_map || !bpf_map__is_internal(data_map), in test_tailcall_bpf2bpf_fentry_entry()
1100 if (!ASSERT_FALSE(data_fd < 0, in test_tailcall_bpf2bpf_fentry_entry()
[all …]
H A Dcore_kern.c23 ASSERT_FALSE(skel->bss->proto_out[1], "!bpf_core_type_exists"); in test_core_kern_lskel()
H A Dlog_buf.c75 ASSERT_FALSE(libbpf_log_error, "libbpf_log_error"); in obj_load_log_buf()
118 ASSERT_FALSE(libbpf_log_error, "libbpf_log_error"); in obj_load_log_buf()
H A Ddecap_sanity.c67 ASSERT_FALSE(skel->bss->broken_csum_start, "broken_csum_start"); in test_decap_sanity()
H A Dbpf_obj_id.c123 !ASSERT_FALSE((env.jit_enabled && !prog_infos[i].jited_prog_len), "jited_prog_len") || in serial_test_bpf_obj_id()
124 !ASSERT_FALSE((env.jit_enabled && !memcmp(jited_insns, zeros, sizeof(zeros))), in serial_test_bpf_obj_id()
H A Dpreempted_bpf_ma_op.c86 ASSERT_FALSE(skel->bss->nomem_err, "ENOMEM"); in test_preempted_bpf_ma_op()
H A Dlog_fixup.c124 ASSERT_FALSE(bpf_map__autocreate(skel->maps.missing_map), "missing_map_autocreate"); in missing_map()
H A Dtcp_hdr_options.c244 ASSERT_FALSE(check_error_linum(sk_fds), "check_error_linum"); in check_hdr_and_close_fds()
511 ASSERT_FALSE(check_error_linum(&sk_fds), "check_error_linum"); in misc()
H A Dcgroup_hierarchical_stats.c96 if (ASSERT_FALSE(err && errno != EBUSY, "mount")) in setup_bpffs()
H A Dtest_struct_ops_module.c200 ASSERT_FALSE(bpf_program__autoload(skel->progs.test_1_turn_off), "prog_autoload"); in test_struct_ops_nulled_out_cb()
H A Duprobe_multi_test.c239 ASSERT_FALSE(skel->bss->bad_pid_seen, "bad_pid_seen"); in uprobe_multi_test_run()
320 ASSERT_FALSE(skel->bss->bad_pid_seen_usdt, "bad_pid_seen_usdt"); in __test_attach_api()
H A Dbpf_iter.c237 ASSERT_FALSE(pthread_join(thread_id, &ret) || ret != NULL, in test_task_common_nocheck()
287 ASSERT_FALSE(pthread_join(thread_id, NULL), "pthread_join"); in test_task_tid()
H A Dkprobe_multi_test.c233 if (!ASSERT_FALSE(!addrs[0] || !addrs[1], "ksym_get_addr")) in test_attach_api_fails()
/linux/tools/testing/selftests/user_events/
H A Duser_events_selftests.h103 ASSERT_FALSE(fail); \
H A Dabi_test.c272 ASSERT_FALSE(event_exists()); in TEST_F()
/linux/tools/testing/memblock/tests/
H A Dcommon.h44 #define ASSERT_FALSE(_seen) ASSERT_EQ(false, _seen) macro
H A Dbasic_api.c2403 ASSERT_FALSE(memblock_overlaps_region(&memblock.memory, SZ_1M, SZ_1M)); in memblock_overlaps_region_check()
2404 ASSERT_FALSE(memblock_overlaps_region(&memblock.memory, SZ_2G, SZ_1M)); in memblock_overlaps_region_check()
2407 ASSERT_FALSE(memblock_overlaps_region(&memblock.memory, SZ_1G - SZ_1M, SZ_1M)); in memblock_overlaps_region_check()
2408 ASSERT_FALSE(memblock_overlaps_region(&memblock.memory, SZ_1G + SZ_4M, SZ_1M)); in memblock_overlaps_region_check()
/linux/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c136 ASSERT_FALSE(WIFSIGNALED(status)) { in TEST()
/linux/tools/testing/selftests/hid/
H A Dhid_common.h100 #define ASSERT_OK(data) ASSERT_FALSE(data)
/linux/tools/testing/selftests/bpf/
H A Dtest_progs.h241 #define ASSERT_FALSE(actual, name) ({ \ macro

12