Lines Matching refs:serial
34 static void failmsg(int serial, char *fmt, ...) { in failmsg() argument
37 printf("test %d failed: ", serial); in failmsg()
51 static int test(int serial, char *expect, char *fmt, ...) { in test() argument
117 failmsg(serial, "buffer overflow"); in test()
122 failmsg(serial, "expected \"%s\" (%d), got \"%s\" (%d)", in test()
128 failmsg(serial, "expected \"%s\", got \"%s\"", expect, buf); in test()
134 failmsg(serial, "asprintf return %d sprintf return %d\n", an, n); in test()
139 failmsg(serial, "sprintf return %s asprintf return %s\n", buf, abuf); in test()
148 static void failmsgw(int serial, wchar_t *fmt, ...) { in failmsgw() argument
151 printf("test %d failed: ", serial); in failmsgw()
160 static int testw(int serial, wchar_t *expect, wchar_t *fmt, ...) { in testw() argument
211 failmsgw(serial, L"buffer overflow"); in testw()
216 failmsgw(serial, L"expected \"%s\" (%d), got \"%s\" (%d)", in testw()
222 failmsgw(serial, L"expected \"%ls\", got \"%ls\"", expect, wbuf); in testw()