Lines Matching refs:expect
44 do_test(int bufsize, const char *expect, int elen, in do_test() argument
79 if (memcmp(test_buffer, expect, written)) { in do_test()
81 bufsize, fmt, test_buffer, written, expect); in do_test()
88 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
104 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
107 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
108 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
112 if (memcmp(p, expect, elen+1)) { in __test()
114 fmt, p, expect); in __test()
122 #define test(expect, fmt, ...) \ argument
123 __test(expect, strlen(expect), fmt, ##__VA_ARGS__)