/picolibc-latest/test/ |
D | test-strncat_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 107 int handler_res = 0; in main() local 116 handler_res = test_handler_called(0, "", test_id); in main() 117 TEST_RES(res == 0, "Normal Concatenation", handler_res, test_id); in main() 119 "Normal Concatenation Contents", handler_res, test_id); in main() 125 handler_res = test_handler_called( in main() 127 TEST_RES(res != 0, "Concatenation with insufficient buffer", handler_res, in main() 133 handler_res = test_handler_called(1, "strncat_s: dest is NULL", test_id); in main() 134 TEST_RES(res != 0, "NULL Destination Pointer", handler_res, test_id); in main() [all …]
|
D | test-strcat_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 107 int handler_res = 0; in main() local 115 handler_res = test_handler_called(0, "", test_id); in main() 116 TEST_RES(res == 0, "Normal Concatenation", handler_res, test_id); in main() 118 "Normal Concatenation Contents", handler_res, test_id); in main() 123 handler_res = test_handler_called( in main() 125 TEST_RES(res != 0, "Concatenation with insufficient buffer", handler_res, in main() 131 handler_res = test_handler_called(1, "strcat_s: dest is NULL", test_id); in main() 132 TEST_RES(res != 0, "NULL Destination Pointer", handler_res, test_id); in main() [all …]
|
D | test-strcpy_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 107 int handler_res = 0; in main() local 115 handler_res = test_handler_called(0, "", test_id); in main() 116 TEST_RES(res == 0, "Normal Copy", handler_res, test_id); in main() 118 handler_res, test_id); in main() 123 handler_res = test_handler_called( in main() 125 TEST_RES(res != 0, "Copy with insufficient buffer", handler_res, test_id); in main() 130 handler_res = test_handler_called(1, "strcpy_s: dest is NULL", test_id); in main() 131 TEST_RES(res != 0, "NULL Destination Pointer", handler_res, test_id); in main() [all …]
|
D | test-strncpy_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 107 int handler_res = 0; in main() local 115 handler_res = test_handler_called(0, "", test_id); in main() 116 TEST_RES(res == 0, "Normal Copy", handler_res, test_id); in main() 118 handler_res, test_id); in main() 123 handler_res = test_handler_called( in main() 125 TEST_RES(res != 0, "Copy with insufficient buffer", handler_res, test_id); in main() 130 handler_res = test_handler_called(1, "strncpy_s: dest is NULL", test_id); in main() 131 TEST_RES(res != 0, "NULL Destination Pointer", handler_res, test_id); in main() [all …]
|
D | test-strnlen_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 113 handler_res = test_handler_called(0, "", test_id); in main() 114 TEST_RES(length == 13, "Normal length", handler_res, test_id); in main() 119 handler_res = test_handler_called(0, "", test_id); in main() 120 TEST_RES(length == 13, "Length with exact buffer size", handler_res, in main() 126 handler_res = test_handler_called(0, "", test_id); in main() 127 TEST_RES(length == 5, "Length with insufficient buffer", handler_res, in main() 133 handler_res = test_handler_called(0, "", test_id); in main() [all …]
|
D | test-sprintf_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 114 handler_res = test_handler_called(0, "", test_id); in main() 116 handler_res, test_id); in main() 118 handler_res, test_id); in main() 123 handler_res = in main() 125 TEST_RES(res == 0, "Formatting with buffer overflow", handler_res, test_id); in main() 130 handler_res = in main() 132 TEST_RES(res == 0, "Formatting with Null buffer", handler_res, test_id); in main() [all …]
|
D | test-memmove_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 114 handler_res = test_handler_called(0, "", test_id); in main() 115 TEST_RES(res == 0, "Normal move", handler_res, test_id); in main() 117 handler_res, test_id); in main() 122 handler_res = test_handler_called( in main() 124 TEST_RES(res != 0, "Move with insufficient destination size", handler_res, in main() 130 handler_res = test_handler_called(1, "memmove_s: dest is NULL", test_id); in main() 131 TEST_RES(res != 0, "Move with Null destination", handler_res, test_id); in main() [all …]
|
D | test-memcpy_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 107 int handler_res = 0; in main() local 115 handler_res = test_handler_called(0, "", test_id); in main() 116 TEST_RES(res == 0, "Normal Copy", handler_res, test_id); in main() 118 handler_res, test_id); in main() 123 handler_res = test_handler_called( in main() 125 TEST_RES(res != 0, "Copy with insufficient destination size", handler_res, in main() 131 handler_res = test_handler_called(1, "memcpy_s: dest is NULL", test_id); in main() 132 TEST_RES(res != 0, "Copy with Null destination", handler_res, test_id); in main() [all …]
|
D | test-strerror_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 114 handler_res = test_handler_called(0, "", test_id); in main() 115 TEST_RES(res == 0, "Normal error message", handler_res, test_id); in main() 117 "Normal error message Contents", handler_res, test_id); in main() 122 handler_res = test_handler_called(0, "", test_id); in main() 123 TEST_RES(res == ERANGE, "Buffer too small", handler_res, test_id); in main() 128 handler_res = test_handler_called(1, "strerror_s: dest is NULL", test_id); in main() 129 TEST_RES(res != 0, "Null Destination Pointer", handler_res, test_id); in main() [all …]
|
D | test-memset_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 114 handler_res = test_handler_called(0, "", test_id); in main() 115 TEST_RES(res == 0, "Normal Set", handler_res, test_id); in main() 117 handler_res, test_id); in main() 122 handler_res = test_handler_called(0, "", test_id); in main() 123 TEST_RES(res == 0, "Zero-length Set", handler_res, test_id); in main() 125 handler_res, test_id); in main() 130 handler_res = test_handler_called(1, "memset_s: dest is NULL", test_id); in main() [all …]
|
D | test-strerrorlen_s.c | 55 #define TEST_RES(cond, msg, handler_res, test_id) \ argument 56 if ((!(cond)) || (handler_res == 1)) { \ 106 int handler_res = 0; in main() local 113 handler_res = test_handler_called(0, "", test_id); in main() 115 handler_res, test_id); in main() 120 handler_res = test_handler_called(0, "", test_id); in main() 121 TEST_RES(length == 0, "Unknown error code length", handler_res, test_id); in main()
|