/tools/testing/selftests/rtc/ |
D | rtctest.c | 46 ASSERT_NE(-1, self->fd); in TEST_F() 50 ASSERT_NE(-1, rc); in TEST_F() 93 ASSERT_NE(-1, self->fd); 99 ASSERT_NE(-1, rc); 107 ASSERT_NE(-1, rc); 132 ASSERT_NE(-1, self->fd); 145 ASSERT_NE(-1, rc); 152 ASSERT_NE(-1, rc); 161 ASSERT_NE(-1, self->fd); in TEST_F() 179 ASSERT_NE(-1, rc); in TEST_F() [all …]
|
/tools/testing/selftests/user_events/ |
D | abi_test.c | 135 ASSERT_NE(0, reg_enable(&self->check, sizeof(int), 32)); in TEST_F() 142 ASSERT_NE(0, reg_enable(&self->check_long, sizeof(long), 64)); in TEST_F() 147 ASSERT_NE(0, reg_enable(&self->check, 1, 0)); in TEST_F() 148 ASSERT_NE(0, reg_enable(&self->check, 2, 0)); in TEST_F() 149 ASSERT_NE(0, reg_enable(&self->check, 3, 0)); in TEST_F() 150 ASSERT_NE(0, reg_enable(&self->check, 5, 0)); in TEST_F() 151 ASSERT_NE(0, reg_enable(&self->check, 6, 0)); in TEST_F() 152 ASSERT_NE(0, reg_enable(&self->check, 7, 0)); in TEST_F() 153 ASSERT_NE(0, reg_enable(&self->check, 9, 0)); in TEST_F() 154 ASSERT_NE(0, reg_enable(&self->check, 128, 0)); in TEST_F() [all …]
|
D | perf_test.c | 121 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP() 155 ASSERT_NE(-1, id); in TEST_F() 157 ASSERT_NE(-1, offset); in TEST_F() 168 ASSERT_NE(-1, fd); in TEST_F() 171 ASSERT_NE(MAP_FAILED, perf_page); in TEST_F() 181 ASSERT_NE(-1, write(self->data_fd, &event, sizeof(event))); in TEST_F() 219 ASSERT_NE(-1, id); in TEST_F() 230 ASSERT_NE(-1, fd); in TEST_F() 233 ASSERT_NE(MAP_FAILED, perf_page); in TEST_F() 239 ASSERT_NE(-1, write(self->data_fd, ®.write_index, in TEST_F()
|
D | ftrace_test.c | 214 ASSERT_NE(-1, self->status_fd); in FIXTURE_SETUP() 217 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP() 272 ASSERT_NE(-1, self->enable_fd); in TEST_F() 273 ASSERT_NE(-1, write(self->enable_fd, "0", sizeof("0"))) in TEST_F() 276 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F() 280 ASSERT_NE(-1, write(self->enable_fd, "0", sizeof("0"))) in TEST_F() 339 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F() 342 ASSERT_NE(1 << reg.enable_bit, self->check); in TEST_F() 346 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() 377 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F() [all …]
|
D | dyn_test.c | 130 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \ 137 ASSERT_NE(-1, check_match(&self->check, x, y, &match)); \ 141 #define TEST_PARSE(x) ASSERT_NE(-1, parse(&self->check, x))
|
/tools/testing/selftests/mm/ |
D | hmm-tests.c | 303 ASSERT_NE(npages, 0); in TEST_F() 307 ASSERT_NE(buffer, NULL); in TEST_F() 312 ASSERT_NE(buffer->mirror, NULL); in TEST_F() 318 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F() 366 ASSERT_NE(npages, 0); in TEST_F() 370 ASSERT_NE(buffer, NULL); in TEST_F() 375 ASSERT_NE(buffer->mirror, NULL); in TEST_F() 381 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F() 425 ASSERT_NE(npages, 0); in TEST_F() 429 ASSERT_NE(buffer, NULL); in TEST_F() [all …]
|
D | migration.c | 52 ASSERT_NE(self->threads, NULL); in FIXTURE_SETUP() 54 ASSERT_NE(self->pids, NULL); in FIXTURE_SETUP() 128 ASSERT_NE(ptr, MAP_FAILED); 154 ASSERT_NE(ptr, MAP_FAILED); 188 ASSERT_NE(ptr, MAP_FAILED);
|
D | mdwe_test.c | 128 ASSERT_NE(self->p, MAP_FAILED); in TEST_F() 139 ASSERT_NE(self->p, MAP_FAILED); in TEST_F() 154 ASSERT_NE(self->p, MAP_FAILED); in TEST_F() 169 ASSERT_NE(self->p, MAP_FAILED); in TEST_F() 187 ASSERT_NE(self->p, MAP_FAILED); in TEST_F()
|
/tools/testing/memblock/tests/ |
D | alloc_helpers_api.c | 32 ASSERT_NE(allocated_ptr, NULL); in alloc_from_simple_generic_check() 76 ASSERT_NE(allocated_ptr, NULL); in alloc_from_misaligned_generic_check() 123 ASSERT_NE(allocated_ptr, NULL); in alloc_from_top_down_high_addr_check() 170 ASSERT_NE(allocated_ptr, NULL); in alloc_from_top_down_no_space_above_check() 206 ASSERT_NE(allocated_ptr, NULL); in alloc_from_top_down_min_addr_cap_check() 249 ASSERT_NE(allocated_ptr, NULL); in alloc_from_bottom_up_high_addr_check() 295 ASSERT_NE(allocated_ptr, NULL); in alloc_from_bottom_up_no_space_above_check() 328 ASSERT_NE(allocated_ptr, NULL); in alloc_from_bottom_up_min_addr_cap_check()
|
D | alloc_nid_api.c | 84 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_simple_check() 137 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_end_misaligned_check() 187 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_exact_address_generic_check() 237 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_narrow_range_check() 333 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_min_reserved_generic_check() 383 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_max_reserved_generic_check() 446 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_reserved_with_space_check() 509 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_reserved_full_merge_generic_check() 573 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_reserved_no_space_check() 668 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_cap_max_check() [all …]
|
D | alloc_api.c | 38 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_simple_check() 96 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_disjoint_check() 141 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_before_check() 189 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_after_check() 239 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_second_fit_check() 293 ASSERT_NE(allocated_ptr, NULL); in alloc_in_between_generic_check() 429 ASSERT_NE(allocated_ptr, NULL); in alloc_limited_space_generic_check() 517 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_simple_check() 573 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_disjoint_check() 615 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_before_check() [all …]
|
D | common.h | 49 #define ASSERT_NE(_expected, _seen) do { \ macro 101 ASSERT_NE(((char *)_seen)[_i], (_expected)); \
|
D | alloc_exact_nid_api.c | 49 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_simple_check() 105 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_part_reserved_check() 162 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_split_range_low_check() 219 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_no_overlap_split_check() 277 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_no_overlap_low_check() 318 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_bottom_up_numa_simple_check() 376 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_bottom_up_numa_part_reserved_check() 433 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_bottom_up_numa_split_range_low_check() 490 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_bottom_up_numa_no_overlap_split_check() 548 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_bottom_up_numa_no_overlap_low_check() [all …]
|
/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 52 ASSERT_NE(MAP_FAILED, addr) { in TEST() 96 ASSERT_NE(MAP_FAILED, addr) { in TEST() 204 ASSERT_NE(NULL, vec) { in TEST() 233 ASSERT_NE(MAP_FAILED, addr) { in TEST() 309 ASSERT_NE(NULL, vec) { in TEST() 315 ASSERT_NE(-1, fd) { in TEST() 332 ASSERT_NE(MAP_FAILED, addr) { in TEST()
|
/tools/testing/selftests/net/ |
D | reuseaddr_ports_exhausted.c | 61 ASSERT_NE(-1, fd) TH_LOG("failed to open socket."); in bind_port() 92 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST() 112 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST() 145 ASSERT_NE(-1, fd[0]) TH_LOG("failed to bind."); in TEST()
|
D | so_incoming_cpu.c | 62 ASSERT_NE(fd, -1); in write_sysctl() 97 ASSERT_NE(self->servers, NULL); in FIXTURE_SETUP() 131 ASSERT_NE(fd, -1); in create_server() 189 ASSERT_NE(CPU_ISSET(i, &cpu_set), 0); in create_clients() 199 ASSERT_NE(fd, -1); in create_clients() 219 ASSERT_NE(fd, -1); in verify_incoming_cpu()
|
/tools/testing/selftests/ptrace/ |
D | vmaccess.c | 63 ASSERT_NE(k, -1); in TEST() 64 ASSERT_NE(k, 0); in TEST() 65 ASSERT_NE(k, pid); in TEST()
|
/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 449 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 454 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 459 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 465 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 468 ASSERT_NE(sys_mount_setattr(-1, "mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 489 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, NULL, in TEST_F() 493 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, (void *)s, in TEST_F() 497 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, 0), 0); in TEST_F() 500 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() 504 ASSERT_NE(sys_mount_setattr(-1, "/mnt/A", AT_RECURSIVE, &invalid_attr, in TEST_F() [all …]
|
/tools/testing/selftests/net/af_unix/ |
D | diag_uid.c | 55 ASSERT_NE(self->netlink_fd, -1); in FIXTURE_SETUP() 58 ASSERT_NE(self->unix_fd, -1); in FIXTURE_SETUP() 127 ASSERT_NE(RTA_OK(attr, rta_len), 0); in render_response() 158 ASSERT_NE(NLMSG_OK(nlh, ret), 0); in receive_response()
|
D | scm_pidfd.c | 260 ASSERT_NE(MAP_FAILED, self->client_addr); in FIXTURE_SETUP() 381 ASSERT_NE(-1, self->server); in TEST_F() 394 ASSERT_NE(-1, err); in TEST_F() 397 ASSERT_NE(-1, self->client_pid); in TEST_F() 408 ASSERT_NE(-1, pfd); in TEST_F() 419 ASSERT_NE(-1, err); in TEST_F() 422 ASSERT_NE(-1, err); in TEST_F()
|
/tools/testing/selftests/arm64/pauth/ |
D | pac.c | 234 ASSERT_NE(0, keyia) TH_LOG("keyia instructions did nothing"); in TEST() 235 ASSERT_NE(0, keyib) TH_LOG("keyib instructions did nothing"); in TEST() 236 ASSERT_NE(0, keyda) TH_LOG("keyda instructions did nothing"); in TEST() 237 ASSERT_NE(0, keydb) TH_LOG("keydb instructions did nothing"); in TEST() 249 ASSERT_NE(0, keyg) TH_LOG("keyg instructions did nothing"); in TEST()
|
/tools/testing/selftests/prctl/ |
D | set-anon-vma-name-test.c | 81 ASSERT_NE(self->ptr_anon, NULL); in FIXTURE_SETUP() 84 ASSERT_NE(self->ptr_not_anon, NULL); in FIXTURE_SETUP()
|
/tools/testing/selftests/pidfd/ |
D | pidfd_setns_test.c | 345 ASSERT_NE(setns(self->pidfd, 0), 0); in TEST_F() 348 ASSERT_NE(setns(self->pidfd, -1), 0); in TEST_F() 351 ASSERT_NE(setns(self->pidfd, CLONE_VM), 0); in TEST_F() 354 ASSERT_NE(setns(self->pidfd, CLONE_NEWUSER | CLONE_VM), 0); in TEST_F() 364 ASSERT_NE(setns(self->child_pidfd_exited, CLONE_NEWUSER | CLONE_NEWNET), in TEST_F() 527 ASSERT_NE(setns(self->child_pidfd2, info->flag), 0) { in TEST_F() 536 ASSERT_NE(setns(self->child_nsfds2[i], info->flag), 0) { in TEST_F() 554 ASSERT_NE(setns(fd, 0), 0); in TEST()
|
/tools/testing/selftests/alsa/ |
D | test-pcmtest-driver.c | 137 ASSERT_NE(card_name, NULL); in FIXTURE_SETUP() 159 ASSERT_NE(self->card, -1); in FIXTURE_SETUP() 176 ASSERT_NE(samples, NULL); in TEST_F() 215 ASSERT_NE(samples, NULL); in TEST_F() 245 ASSERT_NE(chan_samples, NULL); in TEST_F() 280 ASSERT_NE(chan_samples, NULL); in TEST_F()
|
/tools/testing/selftests/perf_events/ |
D | remove_on_exec.c | 90 ASSERT_NE(self->fd, -1); in FIXTURE_SETUP() 138 ASSERT_NE(pipe(pipefd), -1); in TEST_F() 141 ASSERT_NE(dup2(pipefd[1], STDOUT_FILENO), -1); in TEST_F()
|