Lines Matching refs:impl
96 do_one_test (impl_t *impl, CHAR *dst, const CHAR *src, size_t len, size_t n) in do_one_test() argument
98 if (CALL (impl, dst, src, n) != STRNCPY_RESULT (dst, len, n)) in do_one_test()
100 error (0, 0, "Wrong result in function %s %p %p", impl->name, in do_one_test()
101 CALL (impl, dst, src, n), dst); in do_one_test()
108 error (0, 0, "Wrong result in function %s", impl->name); in do_one_test()
120 error (0, 0, "Wrong result in function %s", impl->name); in do_one_test()
153 FOR_EACH_IMPL (impl, 0) in do_test()
154 do_one_test (impl, s2, s1, len, n); in do_test()
184 FOR_EACH_IMPL (impl, 0) in do_page_tests()
185 do_one_test (impl, s2 + off2, s1 + off1, maxoffset - off1 - 1, in do_page_tests()
264 FOR_EACH_IMPL (impl, 1) in do_random_tests()
267 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests()
272 n, impl->name, align1, align2, len, res, in do_random_tests()
281 n, impl->name, align1, align2, len); in do_random_tests()
294 n, impl->name, align1, align2, len); in do_random_tests()
303 n, impl->name, align1, align2, len); in do_random_tests()
313 n, impl->name, align1, align2, len); in do_random_tests()
328 FOR_EACH_IMPL (impl, 0) in test_main()
329 printf ("\t%s", impl->name); in test_main()