Lines Matching refs:elen
37 do_test(int bufsize, const char *expect, int elen, in do_test() argument
50 if (ret != elen) { in do_test()
52 bufsize, fmt, ret, elen); in do_test()
70 written = min(bufsize-1, elen); in do_test()
92 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
98 if (elen >= BUF_SIZE) { in __test()
100 elen, fmt); in __test()
113 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
114 rand = 1 + prandom_u32_max(elen+1); in __test()
116 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
117 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
122 if (memcmp(p, expect, elen+1)) { in __test()