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()
105 int test_id = 0; in main() local
112 test_id++; in main()
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()
120 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()
128 test_id++; in main()
130 handler_res = test_handler_called(1, "memset_s: dest is NULL", test_id); in main()
131 TEST_RES(res != 0, "NULL Destination Pointer", handler_res, test_id); in main()
134 test_id++; in main()
137 test_handler_called(1, "memset_s: count exceeds buffer size", test_id); in main()
138 TEST_RES(res != 0, "Set with zero buffer size", handler_res, test_id); in main()