Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 25 of 98) sorted by relevance

1234

/libuv/test/
H A Dtest-pipe-set-fchmod.c54 ASSERT(stat_buf.st_mode & S_IRUSR); in TEST_IMPL()
55 ASSERT(stat_buf.st_mode & S_IRGRP); in TEST_IMPL()
56 ASSERT(stat_buf.st_mode & S_IROTH); in TEST_IMPL()
63 ASSERT(stat_buf.st_mode & S_IWUSR); in TEST_IMPL()
64 ASSERT(stat_buf.st_mode & S_IWGRP); in TEST_IMPL()
65 ASSERT(stat_buf.st_mode & S_IWOTH); in TEST_IMPL()
72 ASSERT(stat_buf.st_mode & S_IRUSR); in TEST_IMPL()
73 ASSERT(stat_buf.st_mode & S_IRGRP); in TEST_IMPL()
74 ASSERT(stat_buf.st_mode & S_IROTH); in TEST_IMPL()
75 ASSERT(stat_buf.st_mode & S_IWUSR); in TEST_IMPL()
[all …]
H A Dtest-loop-alive.c28 ASSERT(handle); in timer_cb()
35 ASSERT(req); in work_cb()
39 ASSERT(req); in after_work_cb()
46 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
51 ASSERT(uv_loop_alive(uv_default_loop())); in TEST_IMPL()
55 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
60 ASSERT(uv_loop_alive(uv_default_loop())); in TEST_IMPL()
64 ASSERT(!uv_loop_alive(uv_default_loop())); in TEST_IMPL()
H A Dtest-tty.c99 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL()
100 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL()
104 ASSERT(!uv_is_readable((uv_stream_t*) &tty_out)); in TEST_IMPL()
105 ASSERT(uv_is_writable((uv_stream_t*) &tty_out)); in TEST_IMPL()
189 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL()
190 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL()
382 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
383 ASSERT(uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
385 ASSERT(!uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
386 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
[all …]
H A Dtest-shutdown-eof.c58 ASSERT(!got_eof); in read_cb()
78 ASSERT(!got_eof); in shutdown_cb()
118 ASSERT(got_q); in tcp_close_cb()
119 ASSERT(got_eof); in tcp_close_cb()
167 ASSERT(!r); in TEST_IMPL()
173 ASSERT(!r); in TEST_IMPL()
179 ASSERT(got_eof); in TEST_IMPL()
180 ASSERT(got_q); in TEST_IMPL()
H A Dtest-tty-escape-sequence-processing.c180 ASSERT(FillConsoleOutputCharacter( in setup_screen()
218 ASSERT(ReadConsoleOutputCharacter( in capture_screen()
221 ASSERT(ReadConsoleOutputAttribute( in capture_screen()
262 ASSERT(FALSE); in make_expect_screen_erase()
306 ASSERT(actual->text); in compare_screen()
307 ASSERT(actual->attributes); in compare_screen()
308 ASSERT(expect->text); in compare_screen()
309 ASSERT(expect->attributes); in compare_screen()
417 ASSERT(!is_scrolling(&tty_out, si)); in TEST_IMPL()
468 ASSERT(!is_scrolling(&tty_out, si)); in TEST_IMPL()
[all …]
H A Dtest-thread-affinity.c69 ASSERT(cpumask); in TEST_IMPL()
73 ASSERT(cpumask[0] && "test must be run with cpu 0 affinity"); in TEST_IMPL()
112 ASSERT(cpumask[t1first + 0] == (ncpus == 1)); in TEST_IMPL()
113 ASSERT(cpumask[t1first + 1] == (ncpus >= 2)); in TEST_IMPL()
115 ASSERT(cpumask[t1first + 3] == (ncpus >= 4)); in TEST_IMPL()
119 ASSERT(cpumask[t2first + 2] == (ncpus >= 3)); in TEST_IMPL()
H A Dtest-callback-stack.c56 ASSERT(nested == 0 && "close_cb must be called from a fresh stack"); in close_cb()
64 ASSERT(nested == 0 && "shutdown_cb must be called from a fresh stack"); in shutdown_cb()
71 ASSERT(nested == 0 && "read_cb must be called from a fresh stack"); in read_cb()
109 ASSERT(nested == 0 && "timer_cb must be called from a fresh stack"); in timer_cb()
129 ASSERT(nested == 0 && "write_cb must be called from a fresh stack"); in write_cb()
154 ASSERT(nested == 0 && "connect_cb must be called from a fresh stack"); in connect_cb()
H A Dtest-fs-fd-hash.c39 ASSERT(!uv__fd_hash_get(fd, &info)); in assert_nonexistent()
40 ASSERT(!uv__fd_hash_remove(fd, &info)); in assert_nonexistent()
45 ASSERT(uv__fd_hash_get(fd, &info)); in assert_existent()
108 ASSERT(uv__fd_hash_get(0, &info)); in TEST_IMPL()
H A Dtest-tty-duplicate-key.c68 ASSERT(FALSE); in tty_read()
72 ASSERT(FALSE); in tty_read()
160 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL()
161 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL()
214 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL()
215 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL()
280 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL()
281 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL()
H A Dtest-poll.c141 ASSERT(r == 0 || errno == ECONNRESET); in close_socket()
213 ASSERT(events & context->events);
214 ASSERT(!(events & ~context->events));
264 ASSERT(got_eagain());
293 ASSERT(0);
317 ASSERT(got_eagain());
341 ASSERT(got_eagain());
357 ASSERT(r);
360 ASSERT(got_eagain());
396 ASSERT(0);
[all …]
H A Dtest-handle-fileno.c110 ASSERT(uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
111 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
117 ASSERT(!uv_is_readable((uv_stream_t*) &tty)); in TEST_IMPL()
118 ASSERT(!uv_is_writable((uv_stream_t*) &tty)); in TEST_IMPL()
H A Dtest-udp-send-and-recv.c71 ASSERT(0 && "unexpected error"); in cl_recv_cb()
82 ASSERT(!memcmp("PONG", buf->base, nread)); in cl_recv_cb()
126 ASSERT(0 && "unexpected error"); in sv_recv_cb()
140 ASSERT(!memcmp("PING", rcvbuf->base, nread)); in sv_recv_cb()
H A Dtest-getsockname.c99 ASSERT(compare_port == 0 || check_addr.sin_port == compare_addr.sin_port); in check_sockname()
221 ASSERT(!r); in tcp_connector()
227 ASSERT(!r); in tcp_connector()
232 ASSERT(!r); in tcp_connector()
312 ASSERT(!r); in udp_sender()
323 ASSERT(!r); in udp_sender()
H A Dtest-poll-oob.c80 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
92 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
113 ASSERT(got_eagain()); in poll_cb()
120 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
H A Dtest-loop-stop.c58 ASSERT(r); in TEST_IMPL()
62 ASSERT(r); in TEST_IMPL()
H A Dtest-pipe-close-stdout-read-stdin.c80 ASSERT(-1 <= r && r <= 1); in TEST_IMPL()
111 ASSERT(WIFEXITED(status) && WEXITSTATUS(status) == 0); in TEST_IMPL()
H A Dtest-tcp-close-while-connecting.c45 ASSERT(status == UV_ECANCELED || status == UV_ENETUNREACH); in connect_cb()
61 ASSERT(0 && "should not be called"); in timer2_cb()
H A Dtest-fs-event.c57 ASSERT(0 && "should never be called"); in fs_event_fail()
64 ASSERT(r == 0 || r == UV_EEXIST); in create_dir()
130 ASSERT(0 && "fail_cb called"); in fail_cb()
142 ASSERT(filename == NULL || strcmp(filename, "file1") == 0); in fs_event_cb_dir()
155 ASSERT(events == UV_CHANGE || events == UV_RENAME); in fs_event_cb_del_dir()
227 ASSERT(events == UV_CHANGE || events == UV_RENAME); in fs_event_cb_dir_multi_file()
321 ASSERT(events == UV_CHANGE || events == UV_RENAME); in fs_event_cb_dir_multi_file_in_subdir()
358 ASSERT(filename == NULL || strcmp(filename, "file2") == 0); in fs_event_cb_file()
1132 ASSERT(strcmp(buf, watch_dir[i]) == 0); in TEST_IMPL()
1160 ASSERT(r); in TEST_IMPL()
[all …]
H A Dtest-udp-reuseport.c107 ASSERT(timer == &thread_timer_handle1 || timer == &thread_timer_handle2); in ticktack()
130 ASSERT(handle == &thread_handle1 || handle == &thread_handle2); in on_recv()
142 ASSERT(!memcmp("Hello", buf->base, nr)); in on_recv()
190 ASSERT(loop == &thread_loop1 || loop == &thread_loop2); in run_event_loop()
H A Dtest-get-currentexe.c50 ASSERT(!r); in TEST_IMPL()
62 ASSERT(match && !strcmp(match, path)); in TEST_IMPL()
H A Dtest-poll-close-doesnt-corrupt-stack.c46 ASSERT(0 && "should never get here"); in poll_cb()
94 ASSERT(r); in TEST_IMPL()
H A Dtest-connection-fail.c99 ASSERT(!r); in connection_fail()
109 ASSERT(!r); in connection_fail()
H A Dtest-fs.c425 ASSERT(0); in open_cb()
428 ASSERT(req->path); in open_cb()
443 ASSERT(0); in open_cb_simple()
610 ASSERT(req->ptr); in scandir_cb()
663 ASSERT(req->ptr); in stat_cb()
672 ASSERT(req->ptr); in stat_batch_cb()
1909 ASSERT(r); in TEST_IMPL()
2553 ASSERT(r); in TEST_IMPL()
4534 ASSERT(r); in TEST_IMPL()
4553 ASSERT(r); in TEST_IMPL()
[all …]
H A Dtest-tcp-unexpected-read.c53 ASSERT(0 && "alloc_cb should not have been called"); in alloc_cb()
58 ASSERT(0 && "read_cb should not have been called"); in read_cb()
H A Dtest-udp-send-immediate.c73 ASSERT(0 && "unexpected error"); in sv_recv_cb()
87 ASSERT(memcmp("PING", rcvbuf->base, nread) == 0 || in sv_recv_cb()

Completed in 68 milliseconds

1234