Lines Matching refs:g_assert_cmpint
50 g_assert_cmpint(size, <=, fe_can_read(opaque)); in fe_read()
119 g_assert_cmpint(ret, ==, 4); in char_stdio_test_subprocess()
158 g_assert_cmpint(ret, ==, 4); in char_ringbuf_test()
233 g_assert_cmpint(qemu_chr_be_can_write(base), !=, 0); in char_mux_test()
236 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
237 g_assert_cmpint(h2.read_count, ==, 6); in char_mux_test()
241 g_assert_cmpint(h1.last_event, !=, 42); /* should be MUX_OUT or OPENED */ in char_mux_test()
242 g_assert_cmpint(h2.last_event, !=, 42); /* should be MUX_IN or OPENED */ in char_mux_test()
245 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
246 g_assert_cmpint(h2.last_event, ==, 42); in char_mux_test()
248 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
249 g_assert_cmpint(h2.last_event, ==, -1); in char_mux_test()
253 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
254 g_assert_cmpint(h2.last_event, ==, CHR_EVENT_BREAK); in char_mux_test()
257 g_assert_cmpint(h1.last_event, ==, CHR_EVENT_MUX_IN); in char_mux_test()
258 g_assert_cmpint(h2.last_event, ==, CHR_EVENT_MUX_OUT); in char_mux_test()
260 g_assert_cmpint(h1.last_event, ==, -1); in char_mux_test()
261 g_assert_cmpint(h2.last_event, ==, CHR_EVENT_MUX_OUT); in char_mux_test()
264 g_assert_cmpint(h2.read_count, ==, 0); in char_mux_test()
265 g_assert_cmpint(h1.read_count, ==, 6); in char_mux_test()
270 g_assert_cmpint(h1.last_event, ==, CHR_EVENT_BREAK); in char_mux_test()
271 g_assert_cmpint(h2.last_event, ==, CHR_EVENT_MUX_OUT); in char_mux_test()
287 g_assert_cmpint(h1.openclose_count, ==, 0); in char_mux_test()
288 g_assert_cmpint(h2.openclose_count, ==, 0); in char_mux_test()
305 g_assert_cmpint(h1.openclose_count, ==, 1); in char_mux_test()
307 g_assert_cmpint(h2.openclose_count, ==, 1); in char_mux_test()
312 g_assert_cmpint(h1.openclose_count, ==, 3); in char_mux_test()
314 g_assert_cmpint(h2.openclose_count, ==, 3); in char_mux_test()
336 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
337 g_assert_cmpint(h2.read_count, ==, 0); in char_mux_test()
341 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
342 g_assert_cmpint(h2.read_count, ==, 6); in char_mux_test()
349 g_assert_cmpint(strlen(data), !=, 0); in char_mux_test()
365 g_assert_cmpint(size, ==, 5); in websock_server_read()
515 g_assert_cmpint(ret, ==, 9); in char_pipe_test()
519 g_assert_cmpint(ret, ==, 9); in char_pipe_test()
525 g_assert_cmpint(ret, ==, 8); in char_pipe_test()
538 g_assert_cmpint(fe.read_count, ==, 8); in char_pipe_test()
564 g_assert_cmpint(size, ==, 5); in socket_read_hello()
581 g_assert_cmpint(sock, >=, 0); in make_udp_socket()
586 g_assert_cmpint(ret, ==, 0); in make_udp_socket()
588 g_assert_cmpint(ret, ==, 0); in make_udp_socket()
623 g_assert_cmpint(ret, ==, 5); in char_udp_test_internal()
627 g_assert_cmpint(ret, ==, 5); in char_udp_test_internal()
629 g_assert_cmpint(ret, ==, 5); in char_udp_test_internal()
691 g_assert_cmpint(size, ==, sizeof(SOCKET_PONG)); in char_socket_read()
869 g_assert_cmpint(ret, ==, sizeof(SOCKET_PING)); in char_socket_server_test()
1076 g_assert_cmpint(ret, ==, sizeof(SOCKET_PING)); in char_socket_client_test()
1273 g_assert_cmpint(ret, ==, 8); in char_file_fifo_test()
1286 g_assert_cmpint(fe.last_event, !=, CHR_EVENT_BREAK); in char_file_fifo_test()
1288 g_assert_cmpint(fe.last_event, !=, CHR_EVENT_BREAK); in char_file_fifo_test()
1290 g_assert_cmpint(fe.last_event, ==, CHR_EVENT_BREAK); in char_file_fifo_test()
1296 g_assert_cmpint(fe.read_count, ==, 8); in char_file_fifo_test()
1333 g_assert_cmpint(ret, ==, 6); in char_file_test_internal()
1337 g_assert_cmpint(length, ==, 6); in char_file_test_internal()
1393 g_assert_cmpint(ret, ==, 4); in char_null_test()
1432 g_assert_cmpint(sock, >=, 0); in char_hotswap_test()