Lines Matching refs:expect
41 do_test(int bufsize, const char *expect, int elen, in do_test() argument
87 if (memcmp(test_buffer, expect, written)) { in do_test()
89 bufsize, fmt, test_buffer, written, expect); in do_test()
96 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
117 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
120 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
121 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
126 if (memcmp(p, expect, elen+1)) { in __test()
128 fmt, p, expect); in __test()
136 #define test(expect, fmt, ...) \ argument
137 __test(expect, strlen(expect), fmt, ##__VA_ARGS__)