Searched refs:tests (Results 1 – 4 of 4) sorted by relevance
/libio/ |
A D | tst-swscanf.c | 33 } tests[] = variable 59 for (n = 0; n < sizeof (tests) / sizeof (tests[0]); ++n) in do_test() 67 if (swscanf (tests[n].arg, tests[n].fmt, buf) != tests[n].retval) in do_test() 70 tests[n].arg, tests[n].fmt); in do_test() 73 else if (tests[n].retval != 0 && strcmp (buf, tests[n].res) != 0) in do_test() 76 tests[n].arg, tests[n].fmt, buf, tests[n].res); in do_test() 81 tests[n].arg, tests[n].fmt); in do_test() 83 if (swscanf (tests[n].arg, tests[n].wfmt, wbuf) != tests[n].retval) in do_test() 86 tests[n].arg, tests[n].wfmt); in do_test() 92 tests[n].arg, tests[n].wfmt, wbuf, tests[n].wres); in do_test() [all …]
|
A D | tst_swprintf.c | 13 } tests[] = variable 54 for (n = 0; n < sizeof (tests) / sizeof (tests[0]); ++n) in main() 56 ssize_t res = swprintf (buf, tests[n].n, L"%s", tests[n].str); in main() 58 if (tests[n].exp < 0 && res >= 0) in main() 61 tests[n].n, tests[n].str); in main() 64 else if (tests[n].exp >= 0 && tests[n].exp != res) in main() 67 tests[n].n, tests[n].str, tests[n].exp, res); in main() 72 tests[n].n, tests[n].str); in main()
|
A D | tst-fopenloc2.c | 15 } tests[] = variable 20 #define ntests (sizeof (tests) / sizeof (tests[0])) 59 if (TEMP_FAILURE_RETRY (write (fd, tests[i].data, tests[i].datalen)) in do_test() 60 != tests[i].datalen) in do_test() 73 if (asprintf (&ccs, "r,ccs=%s", tests[i].enc) == -1) in do_test() 94 if (wcslen (line) != tests[i].expectedlen) in do_test() 97 i + 1, tests[i].expectedlen, wcslen (line)); in do_test() 101 if (wcscmp (tests[i].expected, line) != 0) in do_test() 104 i + 1, tests[i].expected, line); in do_test()
|
A D | Makefile | 54 tests = tst_swprintf tst_wprintf tst_swscanf tst_wscanf tst_getwc tst_putwc \ macro 71 tests-internal = tst-vtables tst-vtables-interposed 76 tests += tst-fopenloc 79 tests += tst-bz24228
|
Completed in 8 milliseconds