Lines Matching refs:cnt
79 int i, j, cnt = 0; in parse_test_list() local
90 tmp = realloc(tests, sizeof(*tests) * (cnt + 1)); in parse_test_list()
95 tests[cnt].subtest_cnt = 0; in parse_test_list()
96 tests[cnt].subtests = NULL; in parse_test_list()
107 int subtest_cnt = tests[cnt].subtest_cnt; in parse_test_list()
111 tmp_subtests = realloc(tests[cnt].subtests, in parse_test_list()
116 tests[cnt].subtests = tmp_subtests; in parse_test_list()
118 tests[cnt].subtests[subtest_cnt] = in parse_test_list()
120 if (!tests[cnt].subtests[subtest_cnt]) in parse_test_list()
122 sprintf(tests[cnt].subtests[subtest_cnt], in parse_test_list()
126 tests[cnt].subtest_cnt++; in parse_test_list()
129 tests[cnt].name = malloc(strlen(next) + glob_chars + 1); in parse_test_list()
130 if (!tests[cnt].name) in parse_test_list()
132 sprintf(tests[cnt].name, pattern, next); in parse_test_list()
134 cnt++; in parse_test_list()
137 tmp = realloc(set->tests, sizeof(*tests) * (cnt + set->cnt)); in parse_test_list()
141 memcpy(tmp + set->cnt, tests, sizeof(*tests) * cnt); in parse_test_list()
143 set->cnt += cnt; in parse_test_list()
150 for (i = 0; i < cnt; i++) { in parse_test_list()