Lines Matching refs:test_id

55 #define TEST_RES(cond, msg, handler_res, test_id)                              \  argument
57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
64 test_handler_called(int handler_called, char *expected_msg, int test_id) in test_handler_called() argument
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
106 int test_id = 0; in main() local
113 test_id++; in main()
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()
122 test_id++; in main()
126 1, "strncat_s: dest buffer size insufficent to copy string", test_id); in main()
128 test_id); in main()
131 test_id++; 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()
136 handler_res = test_handler_called(1, "strncat_s: source is NULL", test_id); in main()
137 TEST_RES(res != 0, "NULL Source Pointer", handler_res, test_id); in main()
140 test_id++; in main()
143 handler_res = test_handler_called(0, "", test_id); in main()
145 test_id); in main()
148 test_id); in main()
151 test_id++; in main()
154 handler_res = test_handler_called(0, "", test_id); in main()
156 handler_res, test_id); in main()
159 handler_res, test_id); in main()
162 test_id++; in main()
165 handler_res = test_handler_called(0, "", test_id); in main()
167 test_id); in main()
170 test_id); in main()