Lines Matching defs:expect
42 do_test(struct kunit *kunittest, const char *file, const int line, int bufsize, const char *expect,
100 if (memcmp(test_buffer, expect, written)) {
103 file, line, bufsize, fmt, test_buffer, written, expect);
109 __test(struct kunit *kunittest, const char *file, const int line, const char *expect, int elen,
131 do_test(kunittest, file, line, BUF_SIZE, expect, elen, fmt, ap);
134 do_test(kunittest, file, line, rand, expect, elen, fmt, ap);
135 do_test(kunittest, file, line, 0, expect, elen, fmt, ap);
140 if (memcmp(p, expect, elen+1)) {
143 file, line, fmt, p, expect);
150 #define test(expect, fmt, ...) \
151 __test(kunittest, __FILE__, __LINE__, expect, strlen(expect), fmt, ##__VA_ARGS__)