Home
last modified time | relevance | path

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

123

/bionic/tests/
Delftls_dl_test.cpp56 ASSERT_NE(nullptr, lib); in TEST()
59 ASSERT_NE(nullptr, bump_shared_var); in TEST()
92 ASSERT_NE(nullptr, lib); in TEST()
95 ASSERT_NE(nullptr, bump_shared_var); in TEST()
108 ASSERT_NE(nullptr, lib); in TEST()
111 ASSERT_NE(nullptr, get_local_var2); in TEST()
114 ASSERT_NE(nullptr, get_local_var1); in TEST()
117 ASSERT_NE(nullptr, get_local_var1_addr); in TEST()
127 ASSERT_NE(nullptr, bump_local_vars); in TEST()
156 ASSERT_NE(nullptr, lib); in TEST()
[all …]
Dsys_mman_test.cpp32 ASSERT_NE(MAP_FAILED, map); in TEST()
38 ASSERT_NE(MAP_FAILED, map); in TEST()
67 ASSERT_NE(MAP_FAILED, map); in TEST()
82 ASSERT_NE(MAP_FAILED, map); in TEST()
108 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
110 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
112 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
115 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
118 ASSERT_NE(MAP_FAILED, map); in TEST()
126 ASSERT_NE(MAP_FAILED, map); in TEST()
[all …]
Dsys_epoll_test.cpp29 ASSERT_NE(-1, epoll_fd); in TEST()
38 ASSERT_NE(-1, epoll_fd); in TEST()
48 ASSERT_NE(-1, epoll_fd); in TEST()
61 ASSERT_NE(-1, epoll_fd); in TEST()
76 ASSERT_NE(-1, epoll_fd); in TEST()
88 ASSERT_NE(-1, epoll_fd); in TEST()
106 ASSERT_NE(-1, epoll_fd); in TEST()
130 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
133 ASSERT_NE(-1, pipe(fds)); in TEST()
141 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev)); in TEST()
Dsys_auxv_test.cpp38 ASSERT_NE(0, HWCAP_THUMB); in TEST()
40 ASSERT_NE(0, HWCAP_FP); in TEST()
50 ASSERT_NE(0, HWCAP2_AES); in TEST()
52 ASSERT_NE(0, HWCAP2_SVE2); in TEST()
Dpidfd_test.cpp42 ASSERT_NE(-1, child); in TEST()
49 ASSERT_NE(-1, pidfd.get()) << strerror(errno); in TEST()
68 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST()
72 ASSERT_NE(-1, dup.get()) << strerror(errno); in TEST()
74 ASSERT_NE(r.get(), dup.get()); in TEST()
86 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST_F()
Dgetauxval_test.cpp34 ASSERT_NE(0UL, getauxval(AT_PHDR)); in TEST()
35 ASSERT_NE(0UL, getauxval(AT_PHNUM)); in TEST()
36 ASSERT_NE(0UL, getauxval(AT_ENTRY)); in TEST()
37 ASSERT_NE(0UL, getauxval(AT_PAGESZ)); in TEST()
Deventfd_test.cpp29 ASSERT_NE(-1, fd); in TEST()
53 ASSERT_NE(-1, fd); in TEST()
63 ASSERT_NE(-1, fd); in TEST()
75 ASSERT_NE(-1, fd); in TEST()
Dlink_test.cpp59 ASSERT_NE(nullptr, info->dlpi_phdr); in TEST()
60 ASSERT_NE(0, info->dlpi_phnum); in TEST()
117 ASSERT_NE(nullptr, handle); in TEST()
176 ASSERT_NE(nullptr, exe_phdr.table); in TEST()
178 ASSERT_NE(0u, exe_load_bias); in TEST()
180 ASSERT_NE(nullptr, exe_dynamic); in TEST()
182 ASSERT_NE(nullptr, dbg); in TEST()
211 ASSERT_NE(0u, map->l_addr); in TEST()
212 ASSERT_NE(nullptr, map->l_ld); in TEST()
213 ASSERT_NE(nullptr, map->l_name); in TEST()
Dsys_hwprobe_test.cpp78 ASSERT_NE(0U, scalar_cast(p)); in TEST()
79 ASSERT_NE(0U, scalar_memcpy(p)); in TEST()
90 ASSERT_NE(0U, vector_ldst(d, p)); in TEST()
91 ASSERT_NE(0U, vector_memcpy(d, p)); in TEST()
92 ASSERT_NE(0U, vector_ldst64(d, p)); in TEST()
Dfdtrack_test.cpp130 ASSERT_NE(-1, fd); in TEST()
144 ASSERT_NE(-1, fd); in TEST()
203 ASSERT_NE(-1, fd) << strerror(errno); \
215 ASSERT_NE(expected_fds.end(), \
239 ASSERT_NE(-1, rc) << strerror(errno);
247 ASSERT_NE(-1, pidfd_self) << strerror(errno);
253 ASSERT_NE(-1, rc) << strerror(errno);
330 ASSERT_NE(-1, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, sockets));
344 ASSERT_NE(-1, rc);
Dsys_timex_test.cpp27 ASSERT_NE(-1, adjtimex(&t)); in TEST()
34 ASSERT_NE(-1, clock_adjtime(CLOCK_REALTIME, &t)); in TEST()
Diconv_test.cpp41 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "utf8")); in TEST()
43 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "u.t.f-008")); in TEST()
60 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
86 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
115 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
143 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
169 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
202 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
229 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
298 ASSERT_NE(INVALID_ICONV_T, c) << dst_enc; in RoundTrip()
[all …]
Dpty_test.cpp35 ASSERT_NE(-1, pty); in TEST()
36 ASSERT_NE(-1, tty); in TEST()
37 ASSERT_NE(pty, tty); in TEST()
59 ASSERT_NE(-1, pid); in TEST()
63 ASSERT_NE(sid, getsid(0)); in TEST()
Dgrp_pwd_file_test.cpp93 ASSERT_NE(-1, file.fd); in TEST()
113 ASSERT_NE(-1, file.fd); in TEST()
133 ASSERT_NE(-1, file.fd); in TEST()
171 ASSERT_NE(-1, file.fd); in TEST()
207 ASSERT_NE(-1, file.fd); in TEST()
229 ASSERT_NE(-1, file.fd); in TEST()
Dstack_protector_test.cpp55 ASSERT_NE(guard, nullptr); in Check()
97 ASSERT_NE(0, gettid()); in TEST()
98 ASSERT_NE(0U, __stack_chk_guard); in TEST()
Dsys_prctl_test.cpp40 ASSERT_NE(MAP_FAILED, p); in TEST()
42 ASSERT_NE(-1, prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, page_size * 3, "anonymous map space")); in TEST()
81 ASSERT_NE(EINVAL, errno) << "kernel (" << u.release << ") missing required commits:\n" in TEST()
Dsys_socket_test.cpp67 ASSERT_NE(fd, -1) << strerror(errno); in RunTest()
75ASSERT_NE(-1, bind(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr))) << strerror(errno… in RunTest()
77 ASSERT_NE(-1, listen(fd, 1)) << strerror(errno); in RunTest()
109 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestAccept4()
142 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestRecvMMsg()
213 ASSERT_NE(fd_acc, -1) << strerror(errno); in TestSendMMsg()
Dpthread_dlfcn_test.cpp61 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
78 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
104 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
Dbug_26110743_test.cpp35 ASSERT_NE(-1, fd); in ProcSelfReadlinkBody()
78 ASSERT_NE(-1, fd); in ProcTaskFdReadlinkBody()
81 ASSERT_NE(mypid, mytid); in ProcTaskFdReadlinkBody()
Dstdio_test.cpp67 ASSERT_NE(nullptr, fp = fopen(path, "w")); in SetFileTo()
68 ASSERT_NE(EOF, fputs(content, fp)); in SetFileTo()
74 ASSERT_NE(nullptr, fp = fopen(path, "r")); in AssertFileIs()
77 ASSERT_NE(EOF, getline(&line, &length, fp)); in AssertFileIs()
148 ASSERT_NE(fd, -1); in TEST()
152 ASSERT_NE(rc, -1); in TEST()
972 ASSERT_NE(-1, fd_rdonly); in TEST()
975 ASSERT_NE(nullptr, fp = tmpfile()); in TEST()
978 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
986 ASSERT_NE(nullptr, fp = tmpfile()); in TEST()
[all …]
Dsearch_test.cpp94 ASSERT_NE(nullptr, i1); in TEST()
102 ASSERT_NE(nullptr, tsearch(&n2, &root, node_cmp)); in TEST()
103 ASSERT_NE(nullptr, tsearch(&n3, &root, node_cmp)); in TEST()
137 ASSERT_NE(nullptr, tsearch(&n1, &root, pod_node_cmp)); in TEST()
142 ASSERT_NE(nullptr, tdelete(&n1, &root, pod_node_cmp)); in TEST()
226 ASSERT_NE(0, hcreate(13)); in TEST()
297 ASSERT_NE(0, hcreate(1)); in TEST()
Dstdlib_test.cpp269 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
357 ASSERT_NE(rc, -1); in TEST()
390 ASSERT_NE(fd, -1); in TEST()
395 ASSERT_NE(fd2, -1); in TEST()
499 ASSERT_NE(0, system(nullptr)); in TEST()
615 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
641 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
655 ASSERT_NE(-1, pid) << strerror(errno); in TEST()
674 ASSERT_NE(-1, fd); in TEST()
690 ASSERT_NE(-1, fd); in TEST()
[all …]
/bionic/libfdtrack/
Dfdtrack_test.cpp84 ASSERT_NE(-1, fd); in TEST()
87 ASSERT_NE(nullptr, strstr(result.begin()->second.at(0).function_name, "open")); in TEST()
101 ASSERT_NE(-1, fd1); in TEST()
102 ASSERT_NE(-1, fd2); in TEST()
103 ASSERT_NE(-1, fd3); in TEST()
109 ASSERT_NE(nullptr, strstr(result[fd1].at(0).function_name, "open")); in TEST()
110 ASSERT_NE(nullptr, strstr(result[fd3].at(0).function_name, "open")); in TEST()
/bionic/benchmarks/tests/
Dinterface_test.cpp76 ASSERT_NE(-1, pipe(fds)); in Exec()
77 ASSERT_NE(-1, fcntl(fds[0], F_SETFL, O_NONBLOCK)); in Exec()
85 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec()
86 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
95 ASSERT_NE(-1, pid_); in Exec()
128 ASSERT_NE(-1, bytes); in RunTest()
148 ASSERT_NE(-1, stat(exe.c_str(), &st)) << "Stat of " << exe << " failed"; in TEST_F()
/bionic/tests/libs/
Delftls_dtv_resize_helper.cpp62 #define ASSERT_NE(val1, val2) check(__LINE__, #val1, val1, #val2, val2, std::not_equal_to()) macro
106 ASSERT_NE(nullptr, lib); in main()
108 ASSERT_NE(nullptr, func); in main()
143 ASSERT_NE(nullptr, initial_dtv->modules[__tls_module_id_to_idx(first_filler_modid)]); in main()
193 ASSERT_NE(initial_dtv, dtv()); in main()
201 ASSERT_NE(initial_dtv, new_dtv); in main()

123