Lines Matching refs:elen
46 do_test(int bufsize, const char *expect, int elen, in do_test() argument
59 if (ret != elen) { in do_test()
61 bufsize, fmt, ret, elen); in do_test()
79 written = min(bufsize-1, elen); in do_test()
106 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
112 if (elen >= BUF_SIZE) { in __test()
114 elen, fmt); in __test()
127 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
128 rand = get_random_u32_inclusive(1, elen + 1); in __test()
130 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
131 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
136 if (memcmp(p, expect, elen+1)) { in __test()