/Linux-v6.1/tools/testing/selftests/landlock/ |
D | fs_test.c | 120 ASSERT_EQ(0, mkdir(path, 0700)) in create_directory() 131 ASSERT_EQ(0, mknod(path, S_IFREG | 0700, 0)) in create_file() 183 ASSERT_EQ(0, unshare(CLONE_NEWNS)); in prepare_layout() 184 ASSERT_EQ(0, mount("tmp", TMP_DIR, "tmpfs", 0, "size=4m,mode=700")); in prepare_layout() 185 ASSERT_EQ(0, mount(NULL, TMP_DIR, NULL, MS_PRIVATE | MS_REC, NULL)); in prepare_layout() 213 ASSERT_EQ(0, mount("tmp", dir_s3d2, "tmpfs", 0, "size=4m,mode=700")); in create_layout1() 216 ASSERT_EQ(0, mkdir(dir_s3d3, 0700)); in create_layout1() 287 ASSERT_EQ(0, test_open(dir_s1d1, O_RDONLY)); in TEST_F_FORK() 288 ASSERT_EQ(0, test_open(file1_s1d1, O_RDONLY)); in TEST_F_FORK() 289 ASSERT_EQ(0, test_open(file2_s1d1, O_RDONLY)); in TEST_F_FORK() [all …]
|
D | base_test.c | 33 ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 0, 0)); in TEST() 35 ASSERT_EQ(EINVAL, errno); in TEST() 36 ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 1, 0)); in TEST() 37 ASSERT_EQ(EINVAL, errno); in TEST() 38 ASSERT_EQ(-1, landlock_create_ruleset(ruleset_attr, 7, 0)); in TEST() 39 ASSERT_EQ(EINVAL, errno); in TEST() 41 ASSERT_EQ(-1, landlock_create_ruleset(NULL, 1, 0)); in TEST() 43 ASSERT_EQ(EFAULT, errno); in TEST() 45 ASSERT_EQ(-1, landlock_create_ruleset( in TEST() 47 ASSERT_EQ(EFAULT, errno); in TEST() [all …]
|
D | ptrace_test.c | 245 ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC)); in TEST_F() 246 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F() 259 ASSERT_EQ(0, close(pipe_parent[1])); in TEST_F() 260 ASSERT_EQ(0, close(pipe_child[0])); in TEST_F() 265 ASSERT_EQ(1, read(pipe_parent[0], &buf_child, 1)); in TEST_F() 279 ASSERT_EQ(parent, waitpid(parent, &status, 0)); in TEST_F() 280 ASSERT_EQ(1, WIFSTOPPED(status)); in TEST_F() 281 ASSERT_EQ(0, ptrace(PTRACE_DETACH, parent, NULL, 0)); in TEST_F() 297 ASSERT_EQ(1, write(pipe_child[1], ".", 1)); in TEST_F() 300 ASSERT_EQ(0, raise(SIGSTOP)); in TEST_F() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | btf_write.c | 18 ASSERT_EQ(str_off, -ENOENT, "int_str_missing_off"); in gen_btf() 21 ASSERT_EQ(str_off, 1, "int_str_off"); in gen_btf() 24 ASSERT_EQ(str_off, 1, "int_str_found_off"); in gen_btf() 28 ASSERT_EQ(id, 1, "int_id"); in gen_btf() 32 ASSERT_EQ(t->name_off, str_off, "int_name_off"); in gen_btf() 34 ASSERT_EQ(btf_kind(t), BTF_KIND_INT, "int_kind"); in gen_btf() 35 ASSERT_EQ(t->size, 4, "int_sz"); in gen_btf() 36 ASSERT_EQ(btf_int_encoding(t), BTF_INT_SIGNED, "int_enc"); in gen_btf() 37 ASSERT_EQ(btf_int_bits(t), 32, "int_bits"); in gen_btf() 56 ASSERT_EQ(id, 2, "ptr_id"); in gen_btf() [all …]
|
D | tracing_struct.c | 22 ASSERT_EQ(skel->bss->t1_a_a, 2, "t1:a.a"); in test_fentry() 23 ASSERT_EQ(skel->bss->t1_a_b, 3, "t1:a.b"); in test_fentry() 24 ASSERT_EQ(skel->bss->t1_b, 1, "t1:b"); in test_fentry() 25 ASSERT_EQ(skel->bss->t1_c, 4, "t1:c"); in test_fentry() 27 ASSERT_EQ(skel->bss->t1_nregs, 4, "t1 nregs"); in test_fentry() 28 ASSERT_EQ(skel->bss->t1_reg0, 2, "t1 reg0"); in test_fentry() 29 ASSERT_EQ(skel->bss->t1_reg1, 3, "t1 reg1"); in test_fentry() 30 ASSERT_EQ(skel->bss->t1_reg2, 1, "t1 reg2"); in test_fentry() 31 ASSERT_EQ(skel->bss->t1_reg3, 4, "t1 reg3"); in test_fentry() 32 ASSERT_EQ(skel->bss->t1_ret, 10, "t1 ret"); in test_fentry() [all …]
|
D | usdt.c | 71 ASSERT_EQ(bss->usdt0_called, 1, "usdt0_called"); in subtest_basic_usdt() 72 ASSERT_EQ(bss->usdt3_called, 1, "usdt3_called"); in subtest_basic_usdt() 73 ASSERT_EQ(bss->usdt12_called, 1, "usdt12_called"); in subtest_basic_usdt() 75 ASSERT_EQ(bss->usdt0_cookie, 0xcafedeadbeeffeed, "usdt0_cookie"); in subtest_basic_usdt() 76 ASSERT_EQ(bss->usdt0_arg_cnt, 0, "usdt0_arg_cnt"); in subtest_basic_usdt() 77 ASSERT_EQ(bss->usdt0_arg_ret, -ENOENT, "usdt0_arg_ret"); in subtest_basic_usdt() 80 ASSERT_EQ(bss->usdt3_cookie, 0, "usdt3_cookie"); in subtest_basic_usdt() 81 ASSERT_EQ(bss->usdt3_arg_cnt, 3, "usdt3_arg_cnt"); in subtest_basic_usdt() 83 ASSERT_EQ(bss->usdt3_arg_rets[0], 0, "usdt3_arg1_ret"); in subtest_basic_usdt() 84 ASSERT_EQ(bss->usdt3_arg_rets[1], 0, "usdt3_arg2_ret"); in subtest_basic_usdt() [all …]
|
D | atomics.c | 20 ASSERT_EQ(skel->data->add64_value, 3, "add64_value"); in test_add() 21 ASSERT_EQ(skel->bss->add64_result, 1, "add64_result"); in test_add() 23 ASSERT_EQ(skel->data->add32_value, 3, "add32_value"); in test_add() 24 ASSERT_EQ(skel->bss->add32_result, 1, "add32_result"); in test_add() 26 ASSERT_EQ(skel->bss->add_stack_value_copy, 3, "add_stack_value"); in test_add() 27 ASSERT_EQ(skel->bss->add_stack_result, 1, "add_stack_result"); in test_add() 29 ASSERT_EQ(skel->data->add_noreturn_value, 3, "add_noreturn_value"); in test_add() 45 ASSERT_EQ(skel->data->sub64_value, -1, "sub64_value"); in test_sub() 46 ASSERT_EQ(skel->bss->sub64_result, 1, "sub64_result"); in test_sub() 48 ASSERT_EQ(skel->data->sub32_value, -1, "sub32_value"); in test_sub() [all …]
|
D | tc_bpf.c | 40 if (!ASSERT_EQ(opts.handle, 1, "handle set") || in test_tc_bpf_basic() 41 !ASSERT_EQ(opts.priority, 1, "priority set") || in test_tc_bpf_basic() 42 !ASSERT_EQ(opts.prog_id, info.id, "prog_id set")) in test_tc_bpf_basic() 56 if (!ASSERT_EQ(opts.handle, 1, "handle set") || in test_tc_bpf_basic() 57 !ASSERT_EQ(opts.priority, 1, "priority set") || in test_tc_bpf_basic() 58 !ASSERT_EQ(opts.prog_id, info.id, "prog_id set")) in test_tc_bpf_basic() 76 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook = NULL")) in test_tc_bpf_api() 81 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook ifindex == 0")) in test_tc_bpf_api() 85 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook ifindex == 0")) in test_tc_bpf_api() 89 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook ifindex == 0")) in test_tc_bpf_api() [all …]
|
D | core_autosize.c | 88 ASSERT_EQ(char_id, 1, "char_id"); in test_core_autosize() 90 ASSERT_EQ(short_id, 2, "short_id"); in test_core_autosize() 93 ASSERT_EQ(int_id, 3, "int_id"); in test_core_autosize() 95 ASSERT_EQ(long_long_id, 4, "long_long_id"); in test_core_autosize() 97 ASSERT_EQ(void_ptr_id, 5, "void_ptr_id"); in test_core_autosize() 100 ASSERT_EQ(id, 6, "struct_id"); in test_core_autosize() 174 ASSERT_EQ(out.ptr_samesized, 0x01020304, "ptr_samesized"); in test_core_autosize() 175 ASSERT_EQ(out.val1_samesized, 0x1020304050607080, "val1_samesized"); in test_core_autosize() 176 ASSERT_EQ(out.val2_samesized, 0x0a0b0c0d, "val2_samesized"); in test_core_autosize() 177 ASSERT_EQ(out.val3_samesized, 0xfeed, "val3_samesized"); in test_core_autosize() [all …]
|
D | xdp_adjust_tail.c | 26 ASSERT_EQ(topts.retval, XDP_DROP, "ipv4 retval"); in test_xdp_adjust_tail_shrink() 34 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_shrink() 35 ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size"); in test_xdp_adjust_tail_shrink() 61 ASSERT_EQ(topts.retval, XDP_DROP, "ipv4 retval"); in test_xdp_adjust_tail_grow() 68 ASSERT_EQ(topts.retval, XDP_TX, "ipv6 retval"); in test_xdp_adjust_tail_grow() 69 ASSERT_EQ(topts.data_size_out, expect_sz, "ipv6 size"); in test_xdp_adjust_tail_grow() 102 ASSERT_EQ(errno, ENOSPC, "case-64 errno"); /* Due limit copy_size in bpf_test_finish */ in test_xdp_adjust_tail_grow2() 103 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2() 104 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */ in test_xdp_adjust_tail_grow2() 107 ASSERT_EQ(buf[0], 1, "case-64-data buf[0]"); /* 0-63 memset to 1 */ in test_xdp_adjust_tail_grow2() [all …]
|
D | test_bpf_syscall_macro.c | 39 ASSERT_EQ(skel->bss->arg1, exp_arg1, "syscall_arg1"); in test_bpf_syscall_macro() 41 ASSERT_EQ(skel->bss->arg2, exp_arg2, "syscall_arg2"); in test_bpf_syscall_macro() 42 ASSERT_EQ(skel->bss->arg3, exp_arg3, "syscall_arg3"); in test_bpf_syscall_macro() 47 ASSERT_EQ(skel->bss->arg4_cx, exp_arg4, "syscall_arg4_from_cx"); in test_bpf_syscall_macro() 49 ASSERT_EQ(skel->bss->arg4, exp_arg4, "syscall_arg4"); in test_bpf_syscall_macro() 50 ASSERT_EQ(skel->bss->arg5, exp_arg5, "syscall_arg5"); in test_bpf_syscall_macro() 53 ASSERT_EQ(skel->bss->arg1_core, exp_arg1, "syscall_arg1_core_variant"); in test_bpf_syscall_macro() 54 ASSERT_EQ(skel->bss->arg2_core, exp_arg2, "syscall_arg2_core_variant"); in test_bpf_syscall_macro() 55 ASSERT_EQ(skel->bss->arg3_core, exp_arg3, "syscall_arg3_core_variant"); in test_bpf_syscall_macro() 60 ASSERT_EQ(skel->bss->arg4_core_cx, exp_arg4, "syscall_arg4_from_cx_core_variant"); in test_bpf_syscall_macro() [all …]
|
D | lsm_cgroup.c | 105 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 0, "prog count"); in test_lsm_cgroup_functional() 106 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 0, "total prog count"); in test_lsm_cgroup_functional() 114 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_sk_alloc_security"), 1, "prog count"); in test_lsm_cgroup_functional() 115 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 1, "total prog count"); in test_lsm_cgroup_functional() 117 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 0, "prog count"); in test_lsm_cgroup_functional() 121 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_inet_csk_clone"), 1, "prog count"); in test_lsm_cgroup_functional() 122 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 2, "total prog count"); in test_lsm_cgroup_functional() 126 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 0, "prog count"); in test_lsm_cgroup_functional() 131 ASSERT_EQ(query_prog_cnt(cgroup_fd, "bpf_lsm_socket_post_create"), 1, "prog count"); in test_lsm_cgroup_functional() 132 ASSERT_EQ(query_prog_cnt(cgroup_fd, NULL), 3, "total prog count"); in test_lsm_cgroup_functional() [all …]
|
D | tcpbpf_user.c | 23 ASSERT_EQ(expected_events, result->event_map, "event_map"); in verify_result() 25 ASSERT_EQ(result->bytes_received, 501, "bytes_received"); in verify_result() 26 ASSERT_EQ(result->bytes_acked, 1002, "bytes_acked"); in verify_result() 27 ASSERT_EQ(result->data_segs_in, 1, "data_segs_in"); in verify_result() 28 ASSERT_EQ(result->data_segs_out, 1, "data_segs_out"); in verify_result() 29 ASSERT_EQ(result->bad_cb_test_rv, 0x80, "bad_cb_test_rv"); in verify_result() 30 ASSERT_EQ(result->good_cb_test_rv, 0, "good_cb_test_rv"); in verify_result() 31 ASSERT_EQ(result->num_listen, 1, "num_listen"); in verify_result() 34 ASSERT_EQ(result->num_close_events, 3, "num_close_events"); in verify_result() 37 ASSERT_EQ(result->tcp_save_syn, 0, "tcp_save_syn"); in verify_result() [all …]
|
/Linux-v6.1/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 391 ASSERT_EQ(prepare_unpriv_mountns(), 0); in FIXTURE_SETUP() 396 ASSERT_EQ(mount("testing", "/tmp", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 399 ASSERT_EQ(mkdir("/tmp/B", 0777), 0); in FIXTURE_SETUP() 401 ASSERT_EQ(mount("testing", "/tmp/B", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 404 ASSERT_EQ(mkdir("/tmp/B/BB", 0777), 0); in FIXTURE_SETUP() 406 ASSERT_EQ(mount("testing", "/tmp/B/BB", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 409 ASSERT_EQ(mount("testing", "/mnt", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 412 ASSERT_EQ(mkdir("/mnt/A", 0777), 0); in FIXTURE_SETUP() 414 ASSERT_EQ(mount("testing", "/mnt/A", "tmpfs", MS_NOATIME | MS_NODEV, in FIXTURE_SETUP() 417 ASSERT_EQ(mkdir("/mnt/A/AA", 0777), 0); in FIXTURE_SETUP() [all …]
|
/Linux-v6.1/tools/testing/memblock/tests/ |
D | basic_api.c | 18 ASSERT_EQ(memblock.memory.cnt, 1); in memblock_initialization_check() 19 ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS); in memblock_initialization_check() 20 ASSERT_EQ(strcmp(memblock.memory.name, "memory"), 0); in memblock_initialization_check() 23 ASSERT_EQ(memblock.reserved.cnt, 1); in memblock_initialization_check() 24 ASSERT_EQ(memblock.memory.max, EXPECTED_MEMBLOCK_REGIONS); in memblock_initialization_check() 25 ASSERT_EQ(strcmp(memblock.reserved.name, "reserved"), 0); in memblock_initialization_check() 27 ASSERT_EQ(memblock.bottom_up, false); in memblock_initialization_check() 28 ASSERT_EQ(memblock.current_limit, MEMBLOCK_ALLOC_ANYWHERE); in memblock_initialization_check() 57 ASSERT_EQ(rgn->base, r.base); in memblock_add_simple_check() 58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check() [all …]
|
D | alloc_api.c | 41 ASSERT_EQ(rgn->size, size); in alloc_top_down_simple_check() 42 ASSERT_EQ(rgn->base, expected_start); in alloc_top_down_simple_check() 44 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_simple_check() 45 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_top_down_simple_check() 99 ASSERT_EQ(rgn1->size, r1.size); in alloc_top_down_disjoint_check() 100 ASSERT_EQ(rgn1->base, r1.base); in alloc_top_down_disjoint_check() 102 ASSERT_EQ(rgn2->size, r2_size); in alloc_top_down_disjoint_check() 103 ASSERT_EQ(rgn2->base, expected_start); in alloc_top_down_disjoint_check() 105 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_top_down_disjoint_check() 106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_check() [all …]
|
D | alloc_nid_api.c | 76 ASSERT_EQ(rgn->size, size); in alloc_try_nid_top_down_simple_check() 77 ASSERT_EQ(rgn->base, max_addr - size); in alloc_try_nid_top_down_simple_check() 78 ASSERT_EQ(rgn_end, max_addr); in alloc_try_nid_top_down_simple_check() 80 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_try_nid_top_down_simple_check() 81 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_simple_check() 129 ASSERT_EQ(rgn->size, size); in alloc_try_nid_top_down_end_misaligned_check() 130 ASSERT_EQ(rgn->base, max_addr - size - misalign); in alloc_try_nid_top_down_end_misaligned_check() 133 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_try_nid_top_down_end_misaligned_check() 134 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_end_misaligned_check() 179 ASSERT_EQ(rgn->size, size); in alloc_try_nid_exact_address_generic_check() [all …]
|
D | alloc_helpers_api.c | 35 ASSERT_EQ(rgn->size, size); in alloc_from_simple_generic_check() 36 ASSERT_EQ(rgn->base, min_addr); in alloc_from_simple_generic_check() 38 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_from_simple_generic_check() 39 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_simple_generic_check() 79 ASSERT_EQ(rgn->size, size); in alloc_from_misaligned_generic_check() 80 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_misaligned_generic_check() 82 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_from_misaligned_generic_check() 83 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_misaligned_generic_check() 124 ASSERT_EQ(rgn->size, size); in alloc_from_top_down_high_addr_check() 125 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - SMP_CACHE_BYTES); in alloc_from_top_down_high_addr_check() [all …]
|
/Linux-v6.1/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 79 ASSERT_EQ(WIFEXITED(info.si_status), true); in TEST() 80 ASSERT_EQ(WEXITSTATUS(info.si_status), 0); in TEST() 83 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST() 84 ASSERT_EQ(info.si_code, CLD_EXITED); in TEST() 85 ASSERT_EQ(info.si_pid, parent_tid); in TEST() 104 ASSERT_EQ(pipe(pfd), 0); in TEST() 113 ASSERT_EQ(read(pfd[0], buf, 1), 1); in TEST() 120 ASSERT_EQ(sys_waitid(P_PIDFD, pidfd, &info, WSTOPPED, NULL), 0); in TEST() 121 ASSERT_EQ(info.si_signo, SIGCHLD); in TEST() 122 ASSERT_EQ(info.si_code, CLD_STOPPED); in TEST() [all …]
|
/Linux-v6.1/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 169 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 175 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0); in TEST() 177 ASSERT_EQ(write(sfd[1], "w", 1), 1); in TEST() 200 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 206 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0); in TEST() 208 ASSERT_EQ(write(sfd[1], "w", 1), 1); in TEST() 231 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 232 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() 238 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0); in TEST() 241 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0); in TEST() [all …]
|
/Linux-v6.1/tools/testing/selftests/user_events/ |
D | ftrace_test.c | 188 ASSERT_EQ(0, clear()); in FIXTURE_TEARDOWN() 203 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F() 204 ASSERT_EQ(0, reg.write_index); in TEST_F() 208 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F() 209 ASSERT_EQ(0, reg.write_index); in TEST_F() 220 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F() 228 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F() 231 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F() 232 ASSERT_EQ(EBUSY, errno); in TEST_F() 237 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F() [all …]
|
/Linux-v6.1/tools/testing/selftests/vm/ |
D | hmm-tests.c | 157 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN() 165 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN() 169 ASSERT_EQ(ret, 0); in FIXTURE_TEARDOWN() 325 ASSERT_EQ(ret, 0); in TEST_F() 329 ASSERT_EQ(val, 0); in TEST_F() 333 ASSERT_EQ(ret, 0); in TEST_F() 334 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 335 ASSERT_EQ(buffer->faults, 1); in TEST_F() 340 ASSERT_EQ(ptr[i], 0); in TEST_F() 342 ASSERT_EQ(ptr[i], i); in TEST_F() [all …]
|
/Linux-v6.1/tools/testing/selftests/ptrace/ |
D | get_syscall_info.c | 86 ASSERT_EQ(0, sys_ptrace(PTRACE_TRACEME, 0, 0, 0)) { in TEST() 89 ASSERT_EQ(0, kill(pid, SIGSTOP)) { in TEST() 127 ASSERT_EQ(pid, wait(&status)) { in TEST() 133 ASSERT_EQ(0, WEXITSTATUS(status)); in TEST() 148 ASSERT_EQ(0, ptrace_stop) { in TEST() 151 ASSERT_EQ(0, sys_ptrace(PTRACE_SETOPTIONS, pid, 0, in TEST() 160 ASSERT_EQ(expected_none_size, rc) { in TEST() 163 ASSERT_EQ(PTRACE_SYSCALL_INFO_NONE, info.op) { in TEST() 188 ASSERT_EQ(expected_entry_size, rc) { in TEST() 191 ASSERT_EQ(PTRACE_SYSCALL_INFO_ENTRY, info.op) { in TEST() [all …]
|
D | vmaccess.c | 43 ASSERT_EQ(f, 0); in TEST() 60 ASSERT_EQ(errno, EAGAIN); in TEST() 61 ASSERT_EQ(k, -1); in TEST() 66 ASSERT_EQ(WIFEXITED(s), 1); in TEST() 67 ASSERT_EQ(WEXITSTATUS(s), 0); in TEST() 70 ASSERT_EQ(k, 0); in TEST() 72 ASSERT_EQ(k, pid); in TEST() 73 ASSERT_EQ(WIFSTOPPED(s), 1); in TEST() 74 ASSERT_EQ(WSTOPSIG(s), SIGSTOP); in TEST() 76 ASSERT_EQ(k, 0); in TEST() [all …]
|
/Linux-v6.1/tools/testing/selftests/drivers/s390x/uvdevice/ |
D | test_uvdevice.c | 61 ASSERT_EQ(rc, -1); in TEST_F() 62 ASSERT_EQ(errno_cache, EFAULT); in TEST_F() 66 ASSERT_EQ(rc, -1); in TEST_F() 67 ASSERT_EQ(errno_cache, EFAULT); in TEST_F() 77 ASSERT_EQ(rc, -1); in TEST_F() 78 ASSERT_EQ(errno_cache, EFAULT); in TEST_F() 83 ASSERT_EQ(rc, -1); in TEST_F() 84 ASSERT_EQ(errno_cache, EFAULT); in TEST_F() 98 ASSERT_EQ(rc, -1); in TEST_F() 99 ASSERT_EQ(errno_cache, EINVAL); in TEST_F() [all …]
|