Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/net/
Dip_local_port_range.c196 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
229 ASSERT_TRUE(!err) TH_LOG("#%d: setsockopt(IP_LOCAL_PORT_RANGE) failed", i); in TEST_F()
232 ASSERT_TRUE(!err) TH_LOG("#%d: bind failed", i); in TEST_F()
243 ASSERT_TRUE(close(fds[i]) == 0) TH_LOG("#%d: close failed", i); in TEST_F()
275 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
278 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
284 ASSERT_TRUE(!err) TH_LOG("close failed"); in TEST_F()
302 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
305 ASSERT_TRUE(!err) TH_LOG("bind failed"); in TEST_F()
324 ASSERT_TRUE(!err) TH_LOG("setsockopt(IP_LOCAL_PORT_RANGE) failed"); in TEST_F()
[all …]
/linux-6.6.21/tools/testing/selftests/ptrace/
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-6.6.21/tools/testing/selftests/bpf/prog_tests/
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()
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()
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()
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()
Ddecap_sanity.c66 ASSERT_TRUE(skel->bss->init_csum_partial, "init_csum_partial"); in test_decap_sanity()
67 ASSERT_TRUE(skel->bss->final_csum_none, "final_csum_none"); in test_decap_sanity()
Dtask_pt_regs.c46 ASSERT_TRUE(match, "check_regs_match"); in test_task_pt_regs()
Dsubskeleton.c43 ASSERT_TRUE(*lib->kconfig.CONFIG_BPF_SYSCALL, "CONFIG_BPF_SYSCALL"); in subskeleton_lib_subresult()
Dspin_lock.c104 if (!ASSERT_TRUE(ret, "no match for expected error message")) { in test_spin_lock_fail_prog()
Dhtab_update.c28 if (!ASSERT_TRUE(!err || err == -ESRCH, "htab_update__load") || err) in test_reenter_update()
Dlog_fixup.c123 ASSERT_TRUE(bpf_map__autocreate(skel->maps.existing_map), "existing_map_autocreate"); in missing_map()
Dkfree_skb.c115 ASSERT_TRUE(passed, "passed"); in serial_test_kfree_skb()
Dxdp_bpf2bpf.c93 ASSERT_TRUE(test_ctx.passed, "test passed"); in run_xdp_bpf2bpf_pkt_size()
Dglobal_data.c112 if (!ASSERT_TRUE(bpf_map__is_internal(map), "is_internal")) in test_global_data_rdonly()
Dcgroup_hierarchical_stats.c182 if (!ASSERT_TRUE(WIFEXITED(status), "child process exited")) in attach_processes()
Dmptcp.c260 if (!ASSERT_TRUE(info.mptcpi_flags & MPTCP_INFO_FLAG_REMOTE_KEY_RECEIVED, in verify_mptcpify()
Dbpf_tcp_ca.c330 ASSERT_TRUE(found, "expected_err_msg"); in test_rel_setsockopt()
Dctx_rewrite.c791 ASSERT_TRUE(match_pattern(btf, pattern, text, reg_map), in match_program()
/linux-6.6.21/tools/testing/selftests/sgx/
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-6.6.21/tools/testing/selftests/mm/
Dmdwe_test.c95 ASSERT_TRUE(WIFEXITED(status)); in FIXTURE_SETUP()
/linux-6.6.21/tools/testing/selftests/arm64/pauth/
Dpac.c210 ASSERT_TRUE(0) TH_LOG("SIGSEGV/SIGILL signal did not occur"); in TEST()
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_progs.h223 #define ASSERT_TRUE(actual, name) ({ \ macro
/linux-6.6.21/Documentation/dev-tools/
Dkselftest.rst412 ASSERT_NULL ASSERT_TRUE ASSERT_NULL ASSERT_TRUE ASSERT_FALSE
/linux-6.6.21/tools/testing/selftests/
Dkselftest_harness.h530 #define ASSERT_TRUE(seen) \ macro

12