Lines Matching refs:expect
39 do_test(int bufsize, const char *expect, int elen, in do_test() argument
85 if (memcmp(test_buffer, expect, written)) { in do_test()
87 bufsize, fmt, test_buffer, written, expect); in do_test()
94 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
115 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
118 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
119 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
124 if (memcmp(p, expect, elen+1)) { in __test()
126 fmt, p, expect); in __test()
134 #define test(expect, fmt, ...) \ argument
135 __test(expect, strlen(expect), fmt, ##__VA_ARGS__)