Lines Matching refs:TEST_EQ
29 TEST_EQ(0, s.overrun, "StatefulInit() overrun"); in StatefulInitTest()
30 TEST_EQ(128, s.remaining_len, "StatefulInit() len"); in StatefulInitTest()
43 TEST_EQ(128 - 5, s.remaining_len, "StatefulSkip(5) len"); in StatefulSkipTest()
45 TEST_EQ(0, s.overrun, "StatefulSkip(5) overrun"); in StatefulSkipTest()
50 TEST_EQ(0, s.remaining_len, "StatefulSkip(all) len"); in StatefulSkipTest()
52 TEST_EQ(0, s.overrun, "StatefulSkip(all) overrun"); in StatefulSkipTest()
56 TEST_EQ(0, s.remaining_len, "StatefulSkip(0) len"); in StatefulSkipTest()
58 TEST_EQ(0, s.overrun, "StatefulSkip(0) overrun"); in StatefulSkipTest()
62 TEST_EQ(0, s.remaining_len, "StatefulSkip(+1) len"); in StatefulSkipTest()
63 TEST_EQ(1, s.overrun, "StatefulSkip(+1) overrun"); in StatefulSkipTest()
68 TEST_EQ(1, s.overrun, "StatefulSkip(256) overrun"); in StatefulSkipTest()
71 TEST_EQ(1, s.overrun, "StatefulSkip(256+1) overrun"); in StatefulSkipTest()
76 TEST_EQ(1, s.overrun, "StatefulSkip(-1) overrun"); in StatefulSkipTest()
92 TEST_EQ(128 - 5, s.remaining_len, "StatefulMemset_r(5) len"); in StatefulMemset_rTest()
96 TEST_EQ(0, strcmp("AAAAA", buf), "StatefulMemset_r(5) contents"); in StatefulMemset_rTest()
97 TEST_EQ(0, s.overrun, "StatefulMemset_r(5) overrun"); in StatefulMemset_rTest()
99 TEST_EQ(0, strcmp("AAAAABBB", buf), "StatefulMemset_r(3) contents"); in StatefulMemset_rTest()
105 TEST_EQ(0, s.remaining_len, "StatefulMemset_r(all) len"); in StatefulMemset_rTest()
107 TEST_EQ(0, s.overrun, "StatefulMemset_r(all) overrun"); in StatefulMemset_rTest()
109 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(all) contents"); in StatefulMemset_rTest()
113 TEST_EQ(0, s.remaining_len, "StatefulMemset_r(0) len"); in StatefulMemset_rTest()
115 TEST_EQ(0, s.overrun, "StatefulMemset_r(0) overrun"); in StatefulMemset_rTest()
116 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(0) contents"); in StatefulMemset_rTest()
121 TEST_EQ(0, s.remaining_len, "StatefulMemset_r(+1) len"); in StatefulMemset_rTest()
122 TEST_EQ(1, s.overrun, "StatefulMemset_r(+1) overrun"); in StatefulMemset_rTest()
123 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest()
129 TEST_EQ(1, s.overrun, "StatefulMemset_r(256) overrun"); in StatefulMemset_rTest()
133 TEST_EQ(1, s.overrun, "StatefulMemset_r(256+1) overrun"); in StatefulMemset_rTest()
134 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest()
140 TEST_EQ(1, s.overrun, "StatefulMemset_r(-1) overrun"); in StatefulMemset_rTest()
141 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemset_r(+1) contents"); in StatefulMemset_rTest()
161 TEST_EQ(128 - 6, s.remaining_len, "StatefulMemcpy_r(6) len"); in StatefulMemcpy_rTest()
165 TEST_EQ(0, strcmp("Doogie", buf), "StatefulMemcpy_r(6) contents"); in StatefulMemcpy_rTest()
166 TEST_EQ(0, s.overrun, "StatefulMemcpy_r(6) overrun"); in StatefulMemcpy_rTest()
169 TEST_EQ(0, strcmp("DoogieHowserrr", buf), "StatefulMemcpy_r(8) contents"); in StatefulMemcpy_rTest()
176 TEST_EQ(0, s.remaining_len, "StatefulMemcpy_r(all) len"); in StatefulMemcpy_rTest()
178 TEST_EQ(0, s.overrun, "StatefulMemcpy_r(all) overrun"); in StatefulMemcpy_rTest()
179 TEST_EQ(0, memcmp(src3, buf, 10), "StatefulMemcpy_r(all) contents"); in StatefulMemcpy_rTest()
180 TEST_EQ(42, buf[10], "StatefulMemcpy_r(all) contents+1"); in StatefulMemcpy_rTest()
185 TEST_EQ(0, s.remaining_len, "StatefulMemcpy_r(0) len"); in StatefulMemcpy_rTest()
187 TEST_EQ(0, s.overrun, "StatefulMemcpy_r(0) overrun"); in StatefulMemcpy_rTest()
188 TEST_EQ(42, buf[10], "StatefulMemcpy_r(0) contents+1"); in StatefulMemcpy_rTest()
193 TEST_EQ(0, s.remaining_len, "StatefulMemcpy_r(+1) len"); in StatefulMemcpy_rTest()
194 TEST_EQ(1, s.overrun, "StatefulMemcpy_r(+1) overrun"); in StatefulMemcpy_rTest()
195 TEST_EQ(42, buf[10], "StatefulMemcpy_r(+1) contents"); in StatefulMemcpy_rTest()
202 TEST_EQ(1, s.overrun, "StatefulMemcpy_r(9) overrun"); in StatefulMemcpy_rTest()
206 TEST_EQ(1, s.overrun, "StatefulMemcpy_r(9+1) overrun"); in StatefulMemcpy_rTest()
207 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy_r(+1) contents"); in StatefulMemcpy_rTest()
213 TEST_EQ(1, s.overrun, "StatefulMemcpy_r(-1) overrun"); in StatefulMemcpy_rTest()
214 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy_r(+1) contents"); in StatefulMemcpy_rTest()
232 TEST_EQ(6, s.remaining_len, "StatefulMemcpy(6) len"); in StatefulMemcpyTest()
236 TEST_EQ(0, strcmp("ThisIs", buf), "StatefulMemcpy(6) contents"); in StatefulMemcpyTest()
237 TEST_EQ(0, s.overrun, "StatefulMemcpy(6) overrun"); in StatefulMemcpyTest()
242 TEST_EQ(0, strcmp("ATests", buf), "StatefulMemcpy(5) contents"); in StatefulMemcpyTest()
248 TEST_EQ(0, s.remaining_len, "StatefulMemcpy(all) len"); in StatefulMemcpyTest()
250 TEST_EQ(0, s.overrun, "StatefulMemcpy(all) overrun"); in StatefulMemcpyTest()
251 TEST_EQ(0, strcmp(src2, buf), "StatefulMemcpy(all) contents"); in StatefulMemcpyTest()
256 TEST_EQ(0, s.remaining_len, "StatefulMemcpy(0) len"); in StatefulMemcpyTest()
258 TEST_EQ(0, s.overrun, "StatefulMemcpy(0) overrun"); in StatefulMemcpyTest()
259 TEST_EQ(0, strcmp(src2, buf), "StatefulMemcpy(0) contents"); in StatefulMemcpyTest()
264 TEST_EQ(0, s.remaining_len, "StatefulMemcpy(+1) len"); in StatefulMemcpyTest()
265 TEST_EQ(1, s.overrun, "StatefulMemcpy(+1) overrun"); in StatefulMemcpyTest()
266 TEST_EQ(0, strcmp(src2, buf), "StatefulMemcpy(+1) contents"); in StatefulMemcpyTest()
272 TEST_EQ(1, s.overrun, "StatefulMemcpy(9) overrun"); in StatefulMemcpyTest()
276 TEST_EQ(1, s.overrun, "StatefulMemcpy(9+1) overrun"); in StatefulMemcpyTest()
277 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy(+1) contents"); in StatefulMemcpyTest()
282 TEST_EQ(1, s.overrun, "StatefulMemcpy(-1) overrun"); in StatefulMemcpyTest()
283 TEST_EQ(0, memcmp(want, buf, sizeof(want)), "StatefulMemcpy(+1) contents"); in StatefulMemcpyTest()