| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 141 ASSERT_TRUE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F() 159 ASSERT_TRUE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F() 160 ASSERT_TRUE(WIFSIGNALED(info.exit_code)); in TEST_F() 175 ASSERT_TRUE(!!(info.mask & PIDFD_INFO_CREDS)); in TEST_F() 193 ASSERT_TRUE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F() 194 ASSERT_TRUE(WIFEXITED(info.exit_code)); in TEST_F() 211 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() 212 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 216 ASSERT_TRUE(!!(info.mask & PIDFD_INFO_EXIT)); in TEST_F() 217 ASSERT_TRUE(WIFSIGNALE in TEST_F() [all...] |
| H A D | pidfd_file_handle_test.c | 164 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 172 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 180 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 211 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 219 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 227 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 293 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 332 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 379 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() 499 ASSERT_TRUE(st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | ip_local_port_range.c | 212 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 D | get_syscall_info.c | 141 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()
|
| H A D | set_syscall_info.c | 83 ASSERT_TRUE(info->arch) { in check_psi_entry() 86 ASSERT_TRUE(info->instruction_pointer) { in check_psi_entry() 89 ASSERT_TRUE(info->stack_pointer) { in check_psi_entry() 112 ASSERT_TRUE(info->arch) { in check_psi_exit() 115 ASSERT_TRUE(info->instruction_pointer) { in check_psi_exit() 118 ASSERT_TRUE(info->stack_pointer) { in check_psi_exit() 396 ASSERT_TRUE(WIFSTOPPED(status)) { in TEST()
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | coredump_socket_test.c | 21 ASSERT_TRUE(ret || feof(file)); in FIXTURE_SETUP() 87 ASSERT_TRUE(set_core_pattern("@/tmp/coredump.socket")); in TEST_F() 196 ASSERT_TRUE(WIFSIGNALED(status)); in TEST_F() 197 ASSERT_TRUE(WCOREDUMP(status)); in TEST_F() 199 ASSERT_TRUE(get_pidfd_info(pidfd, &info)); in TEST_F() 220 ASSERT_TRUE(set_core_pattern("@/tmp/coredump.socket")); in TEST_F() 324 ASSERT_TRUE(get_pidfd_info(pidfd, &info)); in TEST_F() 334 ASSERT_TRUE(WIFSIGNALED(status)); in TEST_F() 346 ASSERT_TRUE(set_core_pattern("@/tmp/coredump.socket")); in TEST_F() 357 ASSERT_TRUE(WIFSIGNALE in TEST_F() [all...] |
| H A D | coredump_socket_protocol_test.c | 23 ASSERT_TRUE(ret || feof(file)); in FIXTURE_SETUP() 89 ASSERT_TRUE(set_core_pattern("@@/tmp/coredump.socket")); in TEST_F() 223 ASSERT_TRUE(WIFSIGNALED(status)); in TEST_F() 224 ASSERT_TRUE(WCOREDUMP(status)); in TEST_F() 226 ASSERT_TRUE(get_pidfd_info(pidfd, &info)); in TEST_F() 245 ASSERT_TRUE(set_core_pattern("@@/tmp/coredump.socket")); in TEST_F() 367 ASSERT_TRUE(WIFSIGNALED(status)); in TEST_F() 368 ASSERT_TRUE(WCOREDUMP(status)); in TEST_F() 370 ASSERT_TRUE(get_pidfd_info(pidfd, &info)); in TEST_F() 385 ASSERT_TRUE(set_core_patter in TEST_F() [all...] |
| H A D | stackdump_test.c | 46 ASSERT_TRUE(ret || feof(file)); in FIXTURE_SETUP() 137 ASSERT_TRUE(pid >= 0); 145 ASSERT_TRUE(WIFSIGNALED(status)); 146 ASSERT_TRUE(WCOREDUMP(status));
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | vmlinux.c | 75 ASSERT_TRUE(bss->tp_called, "tp"); 76 ASSERT_TRUE(bss->raw_tp_called, "raw_tp"); 77 ASSERT_TRUE(bss->tp_btf_called, "tp_btf"); 78 ASSERT_TRUE(bss->kprobe_called, "kprobe"); 79 ASSERT_TRUE(bss->fentry_called, "fentry");
|
| H A D | struct_ops_autocreate.c | 65 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 D | time_tai.c | 66 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 D | test_mmap_inner_array.c | 34 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 D | cgroup_preorder.c | 52 ASSERT_TRUE(result[0] == 1 && result[1] == 2, "child only"); in run_getsockopt_test() 54 ASSERT_TRUE(result[0] == 2 && result[1] == 1, "child only"); in run_getsockopt_test() 82 ASSERT_TRUE(result[0] == 3 && result[1] == 4 && result[2] == 1 && result[3] == 2, in run_getsockopt_test() 85 ASSERT_TRUE(result[0] == 4 && result[1] == 2 && result[2] == 1 && result[3] == 3, in run_getsockopt_test() 157 ASSERT_TRUE(result[0] == 2 && result[1] == 1, "order before update"); in run_link_replace_test() 170 ASSERT_TRUE(result[0] == 2 && result[1] == 3, "order after update"); in run_link_replace_test()
|
| /linux/tools/testing/vma/tests/ |
| H A D | merge.c | 333 ASSERT_TRUE(merged); in __test_merge_new() 338 ASSERT_TRUE(vma_write_started(vma)); in __test_merge_new() 341 ASSERT_TRUE(vma_flags_test_any_mask(&vma->flags, VMA_STICKY_FLAGS)); in __test_merge_new() 352 ASSERT_TRUE(merged); in __test_merge_new() 358 ASSERT_TRUE(vma_write_started(vma)); in __test_merge_new() 361 ASSERT_TRUE(vma_flags_test_any_mask(&vma->flags, VMA_STICKY_FLAGS)); in __test_merge_new() 374 ASSERT_TRUE(merged); in __test_merge_new() 380 ASSERT_TRUE(vma_write_started(vma)); in __test_merge_new() 383 ASSERT_TRUE(vma_flags_test_any_mask(&vma->flags, VMA_STICKY_FLAGS)); in __test_merge_new() 395 ASSERT_TRUE(merge in __test_merge_new() [all...] |
| H A D | vma.c | 125 ASSERT_TRUE(compare_legacy_flags(legacy_flags, flags)); in test_vma_flags_word() 129 ASSERT_TRUE(compare_legacy_flags(legacy_flags, flags)); in test_vma_flags_word() 133 ASSERT_TRUE(compare_legacy_flags(legacy_flags, vma.flags)); in test_vma_flags_word() 135 ASSERT_TRUE(compare_legacy_flags(legacy_flags, vma.flags)); in test_vma_flags_word() 139 ASSERT_TRUE(compare_legacy_flags(legacy_flags, desc.vma_flags)); in test_vma_flags_word() 141 ASSERT_TRUE(compare_legacy_flags(legacy_flags, desc.vma_flags)); in test_vma_flags_word() 235 ASSERT_TRUE(vma_flags_test(&flags, _flag)); \ in test_vma_flags_test() 236 ASSERT_TRUE(vma_flags_test_single_mask(&flags, mk_vma_flags(_flag))); \ in test_vma_flags_test() 237 ASSERT_TRUE(vma_test(&vma, _flag)); \ in test_vma_flags_test() 238 ASSERT_TRUE(vma_test_single_mas in test_vma_flags_test() [all...] |
| /linux/tools/testing/selftests/mm/ |
| H A D | guard-regions.c | 359 ASSERT_TRUE(try_read_write_buf(ptr)); in TEST_F() 370 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 385 ASSERT_TRUE(try_read_write_buf(ptr)); in TEST_F() 392 ASSERT_TRUE(try_read_write_buf(&ptr[(NUM_PAGES - 1) * page_size])); in TEST_F() 412 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 422 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 518 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 524 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 530 ASSERT_TRUE(try_read_write_buf(curr)); in TEST_F() 562 ASSERT_TRUE(try_read_write_bu in TEST_F() [all...] |
| H A D | merge.c | 173 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 223 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 274 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 333 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 392 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 447 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 502 ASSERT_TRUE(find_vma_procmap(procmap, ptr2)); in TEST_F() 520 ASSERT_TRUE(find_vma_procmap(procmap, ptr2)); in TEST_F() 593 ASSERT_TRUE(find_vma_procmap(procmap, ptr)); in TEST_F() 619 ASSERT_TRUE(find_vma_procma in TEST_F() [all...] |
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-maps-race.c | 628 ASSERT_TRUE(mod_info->vma_modify(self)); in TEST_F() 631 ASSERT_TRUE(mod_info->vma_restore(self)); in TEST_F() 636 ASSERT_TRUE(mod_info->vma_modify(self)); in TEST_F() 637 ASSERT_TRUE(mod_info->vma_restore(self)); in TEST_F() 675 ASSERT_TRUE(read_boundary_lines(self, &self->last_line, &self->first_line)); in TEST_F() 697 ASSERT_TRUE(mod_info->addr && mod_info->next_addr); in TEST_F() 730 ASSERT_TRUE(read_boundary_lines(self, &self->last_line, &self->first_line)); in TEST_F() 737 ASSERT_TRUE(capture_mod_pattern(self, &split_last_line, &split_first_line, in TEST_F() 755 ASSERT_TRUE(read_boundary_lines(self, &new_last_line, &new_first_line)); in TEST_F() 791 ASSERT_TRUE(query_addr_a in TEST_F() [all...] |
| /linux/tools/testing/selftests/namespaces/ |
| H A D | listns_permissions_test.c | 121 ASSERT_TRUE(WIFEXITED(status)); in TEST() 125 ASSERT_TRUE(found_ours); in TEST() 223 ASSERT_TRUE(WIFEXITED(status)); in TEST() 226 ASSERT_TRUE(success); in TEST() 359 ASSERT_TRUE(WIFEXITED(status)); in TEST() 362 ASSERT_TRUE(WIFEXITED(status)); in TEST() 438 ASSERT_TRUE(WIFEXITED(status)); in TEST() 441 ASSERT_TRUE(success); in TEST() 556 ASSERT_TRUE(WIFEXITED(status)); in TEST() 559 ASSERT_TRUE(found_child_userns); in TEST() [all …]
|
| H A D | stress_test.c | 74 ASSERT_TRUE(WIFEXITED(status)); in TEST() 165 ASSERT_TRUE(false); in TEST() 188 ASSERT_TRUE(false); in TEST() 198 ASSERT_TRUE(WIFEXITED(status)); in TEST() 261 ASSERT_TRUE(WIFEXITED(status)); in TEST() 329 ASSERT_TRUE(WIFEXITED(status)); in TEST() 406 ASSERT_TRUE(false); in TEST() 452 ASSERT_TRUE(false); in TEST() 466 ASSERT_TRUE(false); in TEST() 546 ASSERT_TRUE(WIFEXITED(status)); in TEST()
|
| H A D | listns_test.c | 44 ASSERT_TRUE(false); in TEST() 80 ASSERT_TRUE(false); in TEST() 142 ASSERT_TRUE(false); in TEST() 194 ASSERT_TRUE(false); in TEST() 232 ASSERT_TRUE(false); in TEST() 443 ASSERT_TRUE(false); in TEST() 470 ASSERT_TRUE(false); in TEST() 615 ASSERT_TRUE(found_child); in TEST() 617 ASSERT_TRUE(found_parent); in TEST() 624 ASSERT_TRUE(false); in TEST()
|
| /linux/tools/testing/vma/ |
| H A D | shared.h | 38 #define ASSERT_TRUE(_expr) __ASSERT_TRUE(_expr, "") 39 #define ASSERT_FALSE(_expr) ASSERT_TRUE(!(_expr)) 55 ASSERT_TRUE(vma_flags_same_mask((_flags), (_flags_other))) 61 ASSERT_TRUE(vma_flags_same(_flags, __VA_ARGS__)) 67 ASSERT_TRUE(vma_flags_empty(_flags)) 24 #define ASSERT_TRUE( global() macro
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 1385 ASSERT_TRUE(expected_uid_gid(-EBADF, "/mnt/D", 0, 0, 0)); in TEST_F() 1547 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1549 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1551 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1553 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1566 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1568 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1577 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1579 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() 1581 ASSERT_TRUE(stx.stx_attributes & STATX_ATTR_MOUNT_ROOT); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/arm64/gcs/ |
| H A D | libc-gcs.c | 98 ASSERT_TRUE(ret == 0); in TEST() 103 ASSERT_TRUE(ret == 0); in TEST() 107 ASSERT_TRUE(thread_ret != NULL); in TEST() 126 ASSERT_TRUE(gcs != cur); in TEST() 242 ASSERT_TRUE(child_gcs.features_enabled & in TEST() 532 ASSERT_TRUE((unsigned long)get_gcspr() > (unsigned long)self->stack); in TEST_F() 533 ASSERT_TRUE((unsigned long)get_gcspr() <= in TEST_F() 585 ASSERT_TRUE((unsigned long)get_gcspr() > (unsigned long)self->stack); in TEST_F_SIGNAL() 586 ASSERT_TRUE((unsigned long)get_gcspr() <= in TEST_F_SIGNAL() 638 ASSERT_TRUE(stack == MAP_FAILED); in TEST_F()
|
| /linux/tools/testing/selftests/riscv/vector/ |
| H A D | validate_v_ptrace.c | 50 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 60 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 157 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 167 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 270 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 280 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 316 ASSERT_TRUE(WIFSTOPPED(status)); in TEST() 600 ASSERT_TRUE(WIFSTOPPED(status)); in TEST_F() 610 ASSERT_TRUE(WIFSTOPPED(status)); in TEST_F() 809 ASSERT_TRUE(WIFSTOPPED(status)); in TEST_F() [all …]
|