Home
last modified time | relevance | path

Searched refs:ASSERT_NE (Results 1 – 19 of 19) sorted by relevance

/tools/testing/selftests/rtc/
Drtctest.c32 ASSERT_NE(-1, self->fd); in FIXTURE_SETUP()
45 ASSERT_NE(-1, rc); in TEST_F()
67 ASSERT_NE(-1, rc);
74 ASSERT_NE(-1, rc);
97 ASSERT_NE(-1, rc); in TEST_F()
98 ASSERT_NE(0, rc); in TEST_F()
102 ASSERT_NE(-1, rc); in TEST_F()
109 ASSERT_NE(-1, rc); in TEST_F()
121 ASSERT_NE(-1, rc); in TEST_F()
134 ASSERT_NE(-1, rc); in TEST_F()
[all …]
/tools/testing/selftests/vm/
Dhmm-tests.c235 ASSERT_NE(npages, 0); in TEST_F()
239 ASSERT_NE(buffer, NULL); in TEST_F()
244 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
250 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
298 ASSERT_NE(npages, 0); in TEST_F()
302 ASSERT_NE(buffer, NULL); in TEST_F()
307 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
313 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F()
357 ASSERT_NE(npages, 0); in TEST_F()
361 ASSERT_NE(buffer, NULL); in TEST_F()
[all …]
/tools/testing/selftests/mincore/
Dmincore_selftest.c52 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/
Dreuseaddr_ports_exhausted.c61 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()
Dtls.c1092 ASSERT_NE(pid, -1); in test_mutliproc()
/tools/testing/selftests/ptrace/
Dvmaccess.c63 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/
Dmount_setattr_test.c449 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/arm64/pauth/
Dpac.c234 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/pidfd/
Dpidfd_setns_test.c345 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()
Dpidfd_wait.c59 ASSERT_NE(pid, 0); in TEST()
67 ASSERT_NE(pid, 0); in TEST()
/tools/testing/selftests/perf_events/
Dremove_on_exec.c90 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()
Dsigtrap_threads.c127 ASSERT_NE(self->fd, -1); in FIXTURE_SETUP()
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c419 ASSERT_NE(NULL, filter); in TEST()
432 ASSERT_NE(0, ret) { in TEST()
456 ASSERT_NE(NULL, filter); in TEST()
478 ASSERT_NE(0, ret) { in TEST()
751 ASSERT_NE(-1, fd); in TEST_SIGNAL()
841 ASSERT_NE(SIBLING_EXIT_FAILURE, (unsigned long)status); in kill_thread_or_group()
1049 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
1197 ASSERT_NE(NULL, self->_x.filter); \ in FIXTURE_SETUP()
1654 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
2110 ASSERT_NE(self->mytid, 1) { in FIXTURE_SETUP()
[all …]
/tools/testing/selftests/landlock/
Dbase_test.c30 ASSERT_NE(NULL, buf); in TEST()
302 ASSERT_NE(NULL, cmsg); in TEST()
Dfs_test.c132 ASSERT_NE(path[0], '\0'); in mkdir_parents()
134 ASSERT_NE(NULL, walker); in mkdir_parents()
565 ASSERT_NE(NULL, rules) in create_ruleset()
569 ASSERT_NE(NULL, rules[0].path) in create_ruleset()
/tools/testing/selftests/nci/
Dnci_dev.c415 ASSERT_NE(self->sd, -1); in FIXTURE_SETUP()
419 ASSERT_NE(self->fid, -1); in FIXTURE_SETUP()
426 ASSERT_NE(rc, -1); in FIXTURE_SETUP()
/tools/testing/selftests/sgx/
Dmain.c188 ASSERT_NE(sgx_enter_enclave_sym, NULL); in FIXTURE_SETUP()
/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c408 ASSERT_NE(mkdtemp(binderfs_mntpt), NULL) { in TEST()
/tools/testing/selftests/
Dkselftest_harness.h457 #define ASSERT_NE(expected, seen) \ macro