Lines Matching refs:elen
47 do_test(int bufsize, const char *expect, int elen, in do_test() argument
60 if (ret != elen) { in do_test()
62 bufsize, fmt, ret, elen); in do_test()
80 written = min(bufsize-1, elen); in do_test()
107 __test(const char *expect, int elen, const char *fmt, ...) in __test() argument
113 if (elen >= BUF_SIZE) { in __test()
115 elen, fmt); in __test()
128 failed_tests += do_test(BUF_SIZE, expect, elen, fmt, ap); in __test()
129 rand = get_random_u32_inclusive(1, elen + 1); in __test()
131 failed_tests += do_test(rand, expect, elen, fmt, ap); in __test()
132 failed_tests += do_test(0, expect, elen, fmt, ap); in __test()
137 if (memcmp(p, expect, elen+1)) { in __test()