Lines Matching refs:buf
22 char buf[80]; in test_dgram() local
50 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg1)) in test_dgram()
51 || !TEST_mem_eq(buf, sizeof(msg1), msg1, sizeof(msg1)) in test_dgram()
52 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram()
53 || !TEST_mem_eq(buf, sizeof(msg2), msg2, sizeof(msg2)) in test_dgram()
54 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg3)) in test_dgram()
55 || !TEST_mem_eq(buf, sizeof(msg3), msg3, sizeof(msg3)) in test_dgram()
56 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg4)) in test_dgram()
57 || !TEST_mem_eq(buf, sizeof(msg4), msg4, sizeof(msg4))) in test_dgram()
65 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg1)) in test_dgram()
66 || !TEST_mem_eq(buf, sizeof(msg1), msg1, sizeof(msg1))) in test_dgram()
70 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram()
71 || !TEST_mem_eq(buf, sizeof(msg2), msg2, sizeof(msg2)) in test_dgram()
72 || !TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg3)) in test_dgram()
73 || !TEST_mem_eq(buf, sizeof(msg3), msg3, sizeof(msg3))) in test_dgram()
84 if (!TEST_int_eq(BIO_read(bio, buf, /* Short buffer */ 2), 2) in test_dgram()
85 || !TEST_mem_eq(buf, 2, msg1, 2)) in test_dgram()
87 if (!TEST_int_eq(BIO_read(bio, buf, sizeof(buf)), sizeof(msg2)) in test_dgram()
88 || !TEST_mem_eq(buf, sizeof(msg2), msg2, sizeof(msg2))) in test_dgram()
97 || !TEST_int_lt(BIO_read(bio, buf, sizeof(buf)), 0) in test_dgram()