Home
last modified time | relevance | path

Searched refs:ASSERT_TRUE (Results 1 – 25 of 41) sorted by relevance

12

/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c212 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
245 ASSERT_TRUE(!err) TH_LOG("#%d: setsockopt(IP_LOCAL_PORT_RANGE) failed", i); in TEST_F()
248 ASSERT_TRUE(!err) TH_LOG("#%d: bind failed", i); in TEST_F()
259 ASSERT_TRUE(close(fds[i]) == 0) TH_LOG("#%d: close failed", i); in TEST_F()
291 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
294 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
300 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
318 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
321 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
340 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
[all …]
/linux/tools/testing/selftests/ptrace/
H A Dget_syscall_info.c141 ASSERT_TRUE(WIFSTOPPED(status)) { in TEST()
166 ASSERT_TRUE(info.arch) { in TEST()
169 ASSERT_TRUE(info.instruction_pointer) { in TEST()
172 ASSERT_TRUE(info.stack_pointer) { in TEST()
194 ASSERT_TRUE(info.arch) { in TEST()
197 ASSERT_TRUE(info.instruction_pointer) { in TEST()
200 ASSERT_TRUE(info.stack_pointer) { in TEST()
234 ASSERT_TRUE(info.arch) { in TEST()
237 ASSERT_TRUE(info.instruction_pointer) { in TEST()
240 ASSERT_TRUE(info.stack_pointer) { in TEST()
/linux/tools/testing/vma/
H A Dvma.c28 #define ASSERT_TRUE(_expr) \ macro
37 #define ASSERT_FALSE(_expr) ASSERT_TRUE(!(_expr))
38 #define ASSERT_EQ(_val1, _val2) ASSERT_TRUE((_val1) == (_val2))
39 #define ASSERT_NE(_val1, _val2) ASSERT_TRUE((_val1) != (_val2))
441 ASSERT_TRUE(merged); in test_merge_new()
446 ASSERT_TRUE(vma_write_started(vma)); in test_merge_new()
458 ASSERT_TRUE(merged); in test_merge_new()
463 ASSERT_TRUE(vma_write_started(vma)); in test_merge_new()
477 ASSERT_TRUE(merged); in test_merge_new()
482 ASSERT_TRUE(vma_write_started(vma)); in test_merge_new()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dvmlinux.c35 ASSERT_TRUE(bss->tp_called, "tp"); in test_vmlinux()
36 ASSERT_TRUE(bss->raw_tp_called, "raw_tp"); in test_vmlinux()
37 ASSERT_TRUE(bss->tp_btf_called, "tp_btf"); in test_vmlinux()
38 ASSERT_TRUE(bss->kprobe_called, "kprobe"); in test_vmlinux()
39 ASSERT_TRUE(bss->fentry_called, "fentry"); in test_vmlinux()
H A Dstruct_ops_autocreate.c65 ASSERT_TRUE(bpf_program__autoload(skel->progs.test_1), "test_1 default autoload"); in can_load_partial_object()
66 ASSERT_TRUE(bpf_program__autoload(skel->progs.test_2), "test_2 default autoload"); in can_load_partial_object()
72 ASSERT_TRUE(bpf_program__autoload(skel->progs.test_1), "test_1 actual autoload"); in can_load_partial_object()
90 ASSERT_TRUE(bpf_map__autocreate(skel->maps.testmod_1), "testmod_1 autocreate"); in optional_maps()
91 ASSERT_TRUE(bpf_map__autocreate(skel->maps.testmod_2), "testmod_2 autocreate"); in optional_maps()
134 ASSERT_TRUE(bpf_program__autoload(skel->progs.foo), "foo actual autoload"); in autoload_and_shadow_vars()
H A Dtime_tai.c66 ASSERT_TRUE(now > ts1, "tai_future_ts1"); in test_time_tai()
67 ASSERT_TRUE(now > ts2, "tai_future_ts2"); in test_time_tai()
70 ASSERT_TRUE(now - ts1 < TAI_THRESHOLD, "tai_range_ts1"); in test_time_tai()
71 ASSERT_TRUE(now - ts2 < TAI_THRESHOLD, "tai_range_ts2"); in test_time_tai()
H A Dtest_mmap_inner_array.c34 ASSERT_TRUE(skel->bss->pid_match, "pid match 1"); in test_mmap_inner_array()
48 ASSERT_TRUE(skel->bss->pid_match, "pid match 2"); in test_mmap_inner_array()
49 ASSERT_TRUE(skel->bss->outer_map_match, "outer map match 2"); in test_mmap_inner_array()
50 ASSERT_TRUE(skel->bss->done, "done 2"); in test_mmap_inner_array()
H A Dcore_kern.c22 ASSERT_TRUE(skel->bss->proto_out[0], "bpf_core_type_exists"); in test_core_kern_lskel()
24 ASSERT_TRUE(skel->bss->proto_out[2], "bpf_core_type_exists. nested"); in test_core_kern_lskel()
H A Dautoattach.c17 ASSERT_TRUE(bpf_program__autoattach(skel->progs.prog1), "autoattach_prog1"); in test_autoattach()
24 ASSERT_TRUE(skel->bss->prog1_called, "attached_prog1"); in test_autoattach()
H A Dcustom_sec_handlers.c163 ASSERT_TRUE(skel->bss->abc2_called, "abc2_called"); in test_custom_sec_handlers()
164 ASSERT_TRUE(skel->bss->custom1_called, "custom1_called"); in test_custom_sec_handlers()
165 ASSERT_TRUE(skel->bss->custom2_called, "custom2_called"); in test_custom_sec_handlers()
H A Dmap_btf.c24 ASSERT_TRUE(skel->bss->done, "done"); in do_test_normal_map_btf()
71 ASSERT_TRUE(skel->bss->done, "done"); in do_test_map_in_map_btf()
H A Ddecap_sanity.c65 ASSERT_TRUE(skel->bss->init_csum_partial, "init_csum_partial"); in test_decap_sanity()
66 ASSERT_TRUE(skel->bss->final_csum_none, "final_csum_none"); in test_decap_sanity()
H A Dtask_pt_regs.c46 ASSERT_TRUE(match, "check_regs_match"); in test_task_pt_regs()
H A Dbad_struct_ops.c45 ASSERT_TRUE(bpf_program__autoload(skel->progs.foo), "foo autoload == true"); in unused_program()
H A Dsubskeleton.c43 ASSERT_TRUE(*lib->kconfig.CONFIG_BPF_SYSCALL, "CONFIG_BPF_SYSCALL"); in subskeleton_lib_subresult()
H A Dspin_lock.c106 if (!ASSERT_TRUE(ret, "no match for expected error message")) { in test_spin_lock_fail_prog()
H A Dhtab_update.c28 if (!ASSERT_TRUE(!err || err == -ESRCH, "htab_update__load") || err) in test_reenter_update()
H A Dlog_fixup.c123 ASSERT_TRUE(bpf_map__autocreate(skel->maps.existing_map), "existing_map_autocreate"); in missing_map()
H A Dkfree_skb.c116 ASSERT_TRUE(passed, "passed"); in serial_test_kfree_skb()
H A Dglobal_data.c112 if (!ASSERT_TRUE(bpf_map__is_internal(map), "is_internal")) in test_global_data_rdonly()
H A Dxdp_bpf2bpf.c93 ASSERT_TRUE(test_ctx.passed, "test passed"); in run_xdp_bpf2bpf_pkt_size()
/linux/tools/testing/selftests/sgx/
H A Dmain.c287 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
360 ASSERT_TRUE(setup_test_encl(total_mem, &self->encl, _metadata)); in TEST_F()
404 ASSERT_TRUE(setup_test_encl(total_mem, &self->encl, _metadata));
509 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
545 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
578 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
623 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
725 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
788 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
989 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
[all …]
/linux/tools/testing/memblock/tests/
H A Dcommon.h43 #define ASSERT_TRUE(_seen) ASSERT_EQ(true, _seen) macro
H A Dbasic_api.c2411 ASSERT_TRUE(memblock_overlaps_region(&memblock.memory, SZ_1G - SZ_1M, SZ_2M)); in memblock_overlaps_region_check()
2412 ASSERT_TRUE(memblock_overlaps_region(&memblock.memory, SZ_1G + SZ_2M, SZ_2M)); in memblock_overlaps_region_check()
2415 ASSERT_TRUE(memblock_overlaps_region(&memblock.memory, SZ_1G, SZ_4M)); in memblock_overlaps_region_check()
2416 ASSERT_TRUE(memblock_overlaps_region(&memblock.memory, SZ_1G - SZ_2M, SZ_8M)); in memblock_overlaps_region_check()
2417 ASSERT_TRUE(memblock_overlaps_region(&memblock.memory, SZ_1G + SZ_1M, SZ_1M)); in memblock_overlaps_region_check()
/linux/tools/testing/selftests/hid/
H A Dhidraw.c185 ASSERT_TRUE(pfds[0].revents & POLLHUP); in TEST_F()

12