Lines Matching refs:index
258 static int ParseTestCaseAndParam(int argc, const char *argv[], int *index)
262 (*index)++;
263 if (*index >= argc) {
278 testCase->caseLen = strlen(argv[*index]);
279 if (memcpy_s(testCase->bin, TEST_PATH_MAX, argv[*index], testCase->caseLen + 1) != EOK) {
285 (*index)++;
286 for (j = 1; (j < TEST_PARAM_NUM) && (*index < argc) && (strncmp("-t", argv[*index], TEST_T_PARAM_LEN) != 0); j++) {
287 testCase->param[j] = (char *)argv[*index];
288 (*index)++;
291 if (((*index) < argc) && (strncmp("-t", argv[*index], TEST_T_PARAM_LEN) == 0)) {
292 (*index)--;
308 for (int i = 2; i < argc; i++) { /* 2: param index */
391 for (int index = 0; index < g_param.testCaseNum; index++) {
392 free(g_param.testCase[index]);
393 g_param.testCase[index] = nullptr;
419 if ((argc < 2) || (argv == nullptr)) { /* 2: param index */
458 for (int index = 0; index < g_param.testCaseNum; index++) {
459 RunCase(g_param.testCase[index]->bin, g_param.testCase[index]->param);