/third_party/musl/libc-test/src/functional/ |
D | string.c | 17 #define TEST_S(s, x, m) ( \ macro 29 TEST_S(s, "abc", "strcpy gave incorrect string"); in main() 31 TEST_S(s, "abc", "strcpy gave incorrect string"); in main() 33 TEST_S(s, "abc", "strcpy gave incorrect string"); in main() 35 TEST_S(s, "abc", "strcpy gave incorrect string"); in main() 38 TEST_S(s, "bc", "strcpy gave incorrect string"); in main() 40 TEST_S(s, "c", "strcpy gave incorrect string"); in main() 42 TEST_S(s, "", "strcpy gave incorrect string"); in main() 60 TEST_S(s, "abc123", "strncat gave incorrect string"); in main() 71 TEST_S(s, "abc", "strtok result"); in main() [all …]
|
D | sscanf.c | 10 #define TEST_S(s, x, m) ( \ macro 26 TEST_S(a, "hello,", ""); in main() 27 TEST_S(b, "world", ""); in main() 30 TEST_S(a, "hell", ""); in main() 31 TEST_S(b, "o,", ""); in main() 34 TEST_S(a, "hell", ""); in main() 35 TEST_S(b, "o,", ""); in main() 40 TEST_S(a, "hello, wX", ""); in main() 45 TEST_S(a, "56", ""); in main()
|
D | fscanf.c | 12 #define TEST_S(s, x, m) ( \ macro 47 TEST_S(a, "hello,", "wrong result for %s"); in main() 48 TEST_S(b, "wo", "wrong result for %[own]"); in main() 74 TEST_S(a, "[abc123", "wrong result for %[^]]"); in main() 75 TEST_S(b, "]....", "wrong result for %[].]"); in main()
|
D | memstream.c | 15 #define TEST_S(s, x, m) ( \ macro 38 if (s) TEST_S(s, "abc", "wrong output"); in main() 53 if (s) TEST_S(s, "eq", "wrong output"); in main() 69 TEST_S(buf, "hello", ""); in main() 92 TEST_S(buf, "hello104", ""); in main()
|
D | fwscanf.c | 13 #define TEST_S(s, x, m) ( \ macro 57 TEST_S(a, "[abc123", "wrong result for %[^]]"); in main() 58 TEST_S(b, "]....", "wrong result for %[].]"); in main()
|
D | popen.c | 15 #define TEST_S(s, x, m) ( \ macro 35 TEST_S(foo, "hello", "child process did not say hello"); in main()
|
D | ungetc.c | 12 #define TEST_S(s, x, m) ( \ macro 43 TEST_S(a, "xhello, world\n", "mismatch reading ungot character"); in main()
|
D | snprintf.c | 17 #define TEST_S(s, x, m) ( \ macro 154 TEST_S(b, "123", "incorrect output"); in main()
|
D | swprintf.c | 18 #define TEST_S(s, x, m) ( \ macro 128 TEST_S(b, L"123", "incorrect output"); in main()
|