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()
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()
121 test_id++; in main()
124 1, "memcpy_s: copy count exceeds buffer size", test_id); in main()
126 test_id); in main()
129 test_id++; 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()
135 test_id++; in main()
137 handler_res = test_handler_called(1, "memcpy_s: source is NULL", test_id); in main()
138 TEST_RES(res != 0, "Copy with Null source", handler_res, test_id); in main()
141 test_id++; in main()
144 handler_res = test_handler_called(0, "", test_id); in main()
145 TEST_RES(res == 0, "Copy with zero length", handler_res, test_id); in main()
147 test_id); in main()