Home
last modified time | relevance | path

Searched refs:zassert_not_equal (Results 1 – 25 of 136) sorted by relevance

123456

/Zephyr-Core-3.6.0/tests/posix/headers/src/
Dunistd_h.c22 zassert_not_equal(-1, _POSIX_VERSION); in ZTEST()
26 zassert_not_equal(INT_MIN, _POSIX_ADVISORY_INFO); /* not implemented */ in ZTEST()
27 zassert_not_equal(INT_MIN, _POSIX_ASYNCHRONOUS_IO); /* not implemented */ in ZTEST()
28 zassert_not_equal(INT_MIN, _POSIX_BARRIERS); /* not implemented */ in ZTEST()
29 zassert_not_equal(INT_MIN, _POSIX_CHOWN_RESTRICTED); /* not implemented */ in ZTEST()
30 zassert_not_equal(INT_MIN, _POSIX_CPUTIME); /* not implemented */ in ZTEST()
31 zassert_not_equal(INT_MIN, _POSIX_FSYNC); /* not implemented */ in ZTEST()
32 zassert_not_equal(INT_MIN, _POSIX_IPV6); /* not implemented */ in ZTEST()
33 zassert_not_equal(INT_MIN, _POSIX_JOB_CONTROL); /* not implemented */ in ZTEST()
34 zassert_not_equal(INT_MIN, _POSIX_MAPPED_FILES); /* not implemented */ in ZTEST()
[all …]
Dsignal_h.c27 zassert_not_equal((sig_atomic_t)-1, (sig_atomic_t)0); in ZTEST()
30 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify)); in ZTEST()
31 zassert_not_equal(-1, offsetof(struct sigevent, sigev_signo)); in ZTEST()
32 zassert_not_equal(-1, offsetof(struct sigevent, sigev_value)); in ZTEST()
33 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify_function)); in ZTEST()
34 zassert_not_equal(-1, offsetof(struct sigevent, sigev_notify_attributes)); in ZTEST()
36 zassert_not_equal(-1, SIGEV_NONE); in ZTEST()
37 zassert_not_equal(-1, SIGEV_SIGNAL); in ZTEST()
38 zassert_not_equal(-1, SIGEV_THREAD); in ZTEST()
40 zassert_not_equal(-1, offsetof(union sigval, sival_int)); in ZTEST()
[all …]
Dnetdb_h.c44 zassert_not_equal(-1, offsetof(struct addrinfo, ai_flags)); in ZTEST()
45 zassert_not_equal(-1, offsetof(struct addrinfo, ai_family)); in ZTEST()
46 zassert_not_equal(-1, offsetof(struct addrinfo, ai_socktype)); in ZTEST()
47 zassert_not_equal(-1, offsetof(struct addrinfo, ai_protocol)); in ZTEST()
48 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addrlen)); in ZTEST()
49 zassert_not_equal(-1, offsetof(struct addrinfo, ai_addr)); in ZTEST()
50 zassert_not_equal(-1, offsetof(struct addrinfo, ai_canonname)); in ZTEST()
51 zassert_not_equal(-1, offsetof(struct addrinfo, ai_next)); in ZTEST()
53 zassert_not_equal(-1, AI_PASSIVE); in ZTEST()
54 zassert_not_equal(-1, AI_CANONNAME); in ZTEST()
[all …]
Dsys_socket_h.c30 zassert_not_equal(-1, offsetof(struct sockaddr, sa_family)); in ZTEST()
38 zassert_not_equal(-1, offsetof(struct sockaddr_storage, ss_family)); in ZTEST()
42 zassert_not_equal(-1, offsetof(struct msghdr, msg_name)); in ZTEST()
43 zassert_not_equal(-1, offsetof(struct msghdr, msg_namelen)); in ZTEST()
44 zassert_not_equal(-1, offsetof(struct msghdr, msg_iov)); in ZTEST()
45 zassert_not_equal(-1, offsetof(struct msghdr, msg_iovlen)); in ZTEST()
46 zassert_not_equal(-1, offsetof(struct msghdr, msg_control)); in ZTEST()
47 zassert_not_equal(-1, offsetof(struct msghdr, msg_controllen)); in ZTEST()
48 zassert_not_equal(-1, offsetof(struct msghdr, msg_flags)); in ZTEST()
50 zassert_not_equal(-1, offsetof(struct cmsghdr, cmsg_len)); in ZTEST()
[all …]
Dnetinet_in_h.c27 zassert_not_equal(-1, offsetof(struct in_addr, s_addr)); in ZTEST()
29 zassert_not_equal(-1, offsetof(struct sockaddr_in, sin_family)); in ZTEST()
30 zassert_not_equal(-1, offsetof(struct sockaddr_in, sin_port)); in ZTEST()
31 zassert_not_equal(-1, offsetof(struct sockaddr_in, sin_addr)); in ZTEST()
33 zassert_not_equal(-1, offsetof(struct in6_addr, s6_addr)); in ZTEST()
36 zassert_not_equal(-1, offsetof(struct sockaddr_in6, sin6_family)); in ZTEST()
37 zassert_not_equal(-1, offsetof(struct sockaddr_in6, sin6_port)); in ZTEST()
40 zassert_not_equal(-1, offsetof(struct sockaddr_in6, sin6_addr)); in ZTEST()
53 zassert_not_equal(-1, IPPROTO_IP); in ZTEST()
54 zassert_not_equal(-1, IPPROTO_IPV6); in ZTEST()
[all …]
Dpoll_h.c22 zassert_not_equal(-1, offsetof(struct pollfd, fd)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct pollfd, events)); in ZTEST()
24 zassert_not_equal(-1, offsetof(struct pollfd, revents)); in ZTEST()
28 zassert_not_equal(-1, POLLIN); in ZTEST()
32 zassert_not_equal(-1, POLLOUT); in ZTEST()
35 zassert_not_equal(-1, POLLERR); in ZTEST()
36 zassert_not_equal(-1, POLLHUP); in ZTEST()
37 zassert_not_equal(-1, POLLNVAL); in ZTEST()
Dpthread_h.c24 zassert_not_equal(-1, PTHREAD_BARRIER_SERIAL_THREAD); in ZTEST()
26 zassert_not_equal(-1, PTHREAD_CANCEL_ASYNCHRONOUS); in ZTEST()
27 zassert_not_equal(-1, PTHREAD_CANCEL_DEFERRED); in ZTEST()
29 zassert_not_equal(-1, PTHREAD_CANCEL_ENABLE); in ZTEST()
30 zassert_not_equal(-1, PTHREAD_CANCEL_DISABLE); in ZTEST()
32 zassert_not_equal((void *)-42, PTHREAD_CANCELED); in ZTEST()
34 zassert_not_equal(-1, PTHREAD_CREATE_DETACHED); in ZTEST()
35 zassert_not_equal(-1, PTHREAD_CREATE_JOINABLE); in ZTEST()
40 zassert_not_equal(-1, PTHREAD_MUTEX_DEFAULT); in ZTEST()
41 zassert_not_equal(-1, PTHREAD_MUTEX_ERRORCHECK); in ZTEST()
[all …]
Darpa_inet_h.c22 zassert_not_equal(-1, htonl(0)); in ZTEST()
23 zassert_not_equal(-1, htons(0)); in ZTEST()
24 zassert_not_equal(-1, ntohl(0)); in ZTEST()
25 zassert_not_equal(-1, ntohs(0)); in ZTEST()
Dmqueue_h.c22 zassert_not_equal((mqd_t)-1, (mqd_t)NULL); in ZTEST()
24 zassert_not_equal(-1, offsetof(struct mq_attr, mq_flags)); in ZTEST()
25 zassert_not_equal(-1, offsetof(struct mq_attr, mq_maxmsg)); in ZTEST()
26 zassert_not_equal(-1, offsetof(struct mq_attr, mq_msgsize)); in ZTEST()
27 zassert_not_equal(-1, offsetof(struct mq_attr, mq_curmsgs)); in ZTEST()
Dsys_eventfd_h.c25 zassert_not_equal(-1, EFD_NONBLOCK); in ZTEST()
26 zassert_not_equal(-1, EFD_SEMAPHORE); in ZTEST()
28 zassert_not_equal((eventfd_t)-1, (eventfd_t)0); in ZTEST()
Ddirent_h.c22 zassert_not_equal((DIR *)-1, (DIR *)NULL); in ZTEST()
24 zassert_not_equal(-1, offsetof(struct dirent, d_ino)); in ZTEST()
25 zassert_not_equal(-1, offsetof(struct dirent, d_name)); in ZTEST()
Dsched_h.c22 zassert_not_equal(-1, offsetof(struct sched_param, sched_priority)); in ZTEST()
24 zassert_not_equal(-1, SCHED_FIFO); in ZTEST()
25 zassert_not_equal(-1, SCHED_RR); in ZTEST()
Dsys_time_h.c22 zassert_not_equal(-1, offsetof(struct timeval, tv_sec)); in ZTEST()
23 zassert_not_equal(-1, offsetof(struct timeval, tv_usec)); in ZTEST()
/Zephyr-Core-3.6.0/tests/subsys/usb/device/src/
Dmain.c125 zassert_not_equal(usb_dc_ep_set_stall(INVALID_EP), TC_PASS, in ZTEST()
129 zassert_not_equal(usb_dc_ep_clear_stall(INVALID_EP), TC_PASS, in ZTEST()
133 zassert_not_equal(usb_dc_ep_is_stalled(INVALID_EP, &byte), TC_PASS, in ZTEST()
135 zassert_not_equal(usb_dc_ep_is_stalled(VALID_EP, NULL), TC_PASS, in ZTEST()
139 zassert_not_equal(usb_dc_ep_halt(INVALID_EP), TC_PASS, in ZTEST()
143 zassert_not_equal(usb_dc_ep_enable(INVALID_EP), TC_PASS, in ZTEST()
147 zassert_not_equal(usb_dc_ep_disable(INVALID_EP), TC_PASS, in ZTEST()
151 zassert_not_equal(usb_dc_ep_flush(INVALID_EP), TC_PASS, in ZTEST()
155 zassert_not_equal(usb_dc_ep_set_callback(INVALID_EP, NULL), TC_PASS, in ZTEST()
159 zassert_not_equal(usb_dc_ep_write(INVALID_EP, &byte, sizeof(byte), in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/subsys/fs/fs_api/src/
Dtest_fs_dir_file.c139 zassert_not_equal(ret, 0, "Mount a NULL fs"); in test_mount()
143 zassert_not_equal(ret, 0, "Mount an unsupported fs"); in test_mount()
149 zassert_not_equal(ret, 0, "Mount to an invalid dir"); in test_mount()
151 zassert_not_equal(ret, 0, "Mount dir name too short"); in test_mount()
153 zassert_not_equal(ret, 0, "Mount point is NULL"); in test_mount()
155 zassert_not_equal(ret, 0, "Mount with invalid mount point"); in test_mount()
162 zassert_not_equal(ret, 0, "Mount to a mounted dir"); in test_mount()
174 zassert_not_equal(ret, 0, "Mount to a fs without op interface"); in test_mount()
195 zassert_not_equal(ret, 0, "Unmount a NULL fs"); in test_unmount()
199 zassert_not_equal(ret, 0, "Unmount a never mounted fs"); in test_unmount()
[all …]
/Zephyr-Core-3.6.0/tests/net/socket/tls_ext/src/
Dmain.c168 zassert_not_equal(r, -1, "accept() failed (%d)", r); in server_thread_fn()
174 zassert_not_equal(addrstrp, NULL, "inet_ntop() failed (%d)", errno); in server_thread_fn()
181 zassert_not_equal(r, -1, "recv() failed (%d)", errno); in server_thread_fn()
186 zassert_not_equal(r, -1, "send() failed (%d)", errno); in server_thread_fn()
191 zassert_not_equal(r, -1, "close() failed on the server fd (%d)", errno); in server_thread_fn()
219 zassert_not_equal(r, -1, "failed to create server socket (%d)", errno); in test_common()
223 zassert_not_equal(r, -1, "failed to set SO_REUSEADDR (%d)", errno); in test_common()
252 zassert_not_equal(r, -1, in test_common()
264 zassert_not_equal(r, -1, "failed to set TLS_SEC_TAG_LIST (%d)", in test_common()
269 zassert_not_equal(r, -1, "failed to set TLS_HOSTNAME (%d)", in test_common()
[all …]
/Zephyr-Core-3.6.0/tests/net/socket/socketpair/src/
Dpoll.c58 zassert_not_equal(res, -1, "fcntl failed: %d", errno); in ZTEST_USER_F()
63 zassert_not_equal(res, -1, "fcntl failed: %d", errno); in ZTEST_USER_F()
66 zassert_not_equal(res, -1, "fcntl failed: %d", errno); in ZTEST_USER_F()
134 zassert_not_equal(res, -1, "socketpair() failed: %d", errno); in ZTEST_F()
178 zassert_not_equal(res, -1, "poll() failed: %d", errno); in ZTEST_USER_F()
180 zassert_not_equal(fds[0].revents & POLLOUT, 0, "POLLOUT not set"); in ZTEST_USER_F()
183 zassert_not_equal(res, -1, "send() failed: %d", errno); in ZTEST_USER_F()
190 zassert_not_equal(res, -1, "poll() failed: %d", errno); in ZTEST_USER_F()
192 zassert_not_equal(fds[0].revents & POLLIN, 0, "POLLIN not set"); in ZTEST_USER_F()
200 zassert_not_equal(res, -1, "poll() failed: %d", errno); in ZTEST_USER_F()
[all …]
Dnonblock.c23 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
26 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
44 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
47 zassert_not_equal(res, -1, "fcntl() failed: %d", i, errno); in ZTEST_USER_F()
Dhappy_path.c35 zassert_not_equal(res, -1, "send() failed: %d", errno); in happy_path()
44 zassert_not_equal(res, -1, "recv() failed: %d", errno); in happy_path()
59 zassert_not_equal(res, -1, "sendto() failed: %d", errno); in happy_path()
90 zassert_not_equal(res, -1, "sendmsg() failed: %d", errno); in happy_path()
97 zassert_not_equal(res, -1, "recv() failed: %d", errno); in happy_path()
/Zephyr-Core-3.6.0/tests/subsys/portability/cmsis_rtos_v1/src/
Dsignal.c29 zassert_not_equal(signals, 0x80000000, ""); in Thread_1()
36 zassert_not_equal(signals, 0x80000000, ""); in Thread_2()
49 zassert_not_equal(signals, 0x80000000, in test_multiple_signal_flags()
54 zassert_not_equal(signals, 0x80000000, ""); in test_multiple_signal_flags()
58 zassert_not_equal(signals, 0x80000000, in test_multiple_signal_flags()
62 zassert_not_equal(signals, 0x80000000, ""); in test_multiple_signal_flags()
105 zassert_not_equal(signals, 0x80000000, "signal clear failed"); in ZTEST()
135 zassert_not_equal(signals, 0x80000000, "clear signal failed"); in ZTEST()
139 zassert_not_equal(signals, 0x80000000, "set any signal failed"); in ZTEST()
173 zassert_not_equal(signals, 0x80000000, "signal set failed in ISR"); in offload_function()
/Zephyr-Core-3.6.0/tests/lib/c_lib/thrd/src/
Dmtx.c27 zassert_not_equal(thrd_success, mtx_init(NULL, FORTY_TWO)); in ZTEST()
28 zassert_not_equal(thrd_success, mtx_init(&mutex, FORTY_TWO)); in ZTEST()
32 zassert_not_equal(thrd_success, mtx_init(NULL, mtx_plain)); in ZTEST()
33 zassert_not_equal(thrd_success, mtx_init((mtx_t *)BIOS_FOOD, FORTY_TWO)); in ZTEST()
61 zassert_not_equal(thrd_success, mtx_lock(NULL)); in ZTEST()
62 zassert_not_equal(thrd_success, mtx_lock((mtx_t *)BIOS_FOOD)); in ZTEST()
74 zassert_not_equal(thrd_success, mtx_lock((&mutex))); in ZTEST()
162 zassert_not_equal(thrd_success, mtx_unlock(&mtx)); in ZTEST()
/Zephyr-Core-3.6.0/tests/bluetooth/df/common/src/
Dbt_conn_common.c36 zassert_not_equal(conn, NULL, "Failed acquire ll_conn instance"); in ut_bt_create_connection()
59 zassert_not_equal(conn, NULL, "Failed ll_conn instance for given handle"); in ut_bt_destroy_connection()
69 zassert_not_equal(conn, NULL, "Failed ll_conn instance for given handle"); in ut_bt_set_peer_features()
80 zassert_not_equal(conn, NULL, "Failed ll_conn instance for given handle"); in ut_bt_set_periph_latency()
/Zephyr-Core-3.6.0/tests/kernel/mem_protect/demand_paging/src/
Dmain.c151 zassert_not_equal(faults, 0UL, "no page faults handled?"); in ZTEST()
156 zassert_not_equal(stats.eviction.dirty, 0UL, in ZTEST()
175 zassert_not_equal(stats.eviction.clean, 0UL, in ZTEST()
182 zassert_not_equal(stats.pagefaults.cnt, 0UL, in ZTEST()
184 zassert_not_equal(stats.eviction.dirty, 0UL, in ZTEST()
186 zassert_not_equal(stats.eviction.clean, 0UL, in ZTEST()
323 zassert_not_equal(faults, 0, "should have had some pagefaults"); in ZTEST()
336 zassert_not_equal(stats.pagefaults.cnt, 0UL, in ZTEST_USER()
338 zassert_not_equal(stats.eviction.dirty, 0UL, in ZTEST_USER()
340 zassert_not_equal(stats.eviction.clean, 0UL, in ZTEST_USER()
[all …]
/Zephyr-Core-3.6.0/tests/drivers/sdhc/src/
Dmain.c46 zassert_not_equal(props.f_max, 0xFF, "props structure not initialized"); in ZTEST()
47 zassert_not_equal(props.f_min, 0xFF, "props structure not initialized"); in ZTEST()
48 zassert_not_equal(props.power_delay, 0xFF, "props structure not initialized"); in ZTEST()
49 zassert_not_equal(props.max_current_330, 0xFF, "props structure not initialized"); in ZTEST()
50 zassert_not_equal(props.max_current_300, 0xFF, "props structure not initialized"); in ZTEST()
51 zassert_not_equal(props.max_current_180, 0xFF, "props structure not initialized"); in ZTEST()
75 zassert_not_equal(ret, 0, "Invalid io configuration should not succeed"); in ZTEST()
/Zephyr-Core-3.6.0/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c259 zassert_not_equal(0, err, "Did not fail with null params"); in ZTEST_F()
268 zassert_not_equal(0, err, "Did not fail with null source"); in ZTEST_F()
278 zassert_not_equal(0, err, "Did not fail with params_count %u", create_param->params_count); in ZTEST_F()
289 zassert_not_equal(0, err, "Did not fail with params_count %u", create_param->params_count); in ZTEST_F()
302 zassert_not_equal(0, err, "Did not fail with NULL subgroup params"); in ZTEST_F()
315 zassert_not_equal(0, err, "Did not fail with NULL qos"); in ZTEST_F()
325 zassert_not_equal(0, err, "Did not fail with packing %u", create_param->packing); in ZTEST_F()
337 zassert_not_equal(0, err, "Did not fail with %u stream params", in ZTEST_F()
350 zassert_not_equal(0, err, "Did not fail with %u stream params", in ZTEST_F()
366 zassert_not_equal(0, err, "Did not fail with NULL stream params"); in ZTEST_F()
[all …]

123456