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