Home | History | Annotate | Download | only in testsuite

Lines Matching refs:cnt

47   size_t cnt;
50 for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt)
51 if (tests[cnt].str == NULL)
53 printf ("\n%s\n%.*s\n", tests[cnt].reg,
54 (int) strlen (tests[cnt].reg),
57 else if (tests[cnt].reg == NULL)
58 printf ("!!! %s\n", tests[cnt].str);
65 printf ("regexp: \"%s\", string: \"%s\" -> ", tests[cnt].reg,
66 tests[cnt].str);
69 err = regcomp (&re, tests[cnt].reg, tests[cnt].options);
72 if (tests[cnt].start == -2)
84 else if (tests[cnt].start == -2)
92 err = regexec (&re, tests[cnt].str, 20, match, 0);
96 if (tests[cnt].start == -1)
106 if (match[0].rm_so == 0 && tests[cnt].start == 0
107 && match[0].rm_eo == 0 && tests[cnt].end == 0)
109 else if (match[0].rm_so + 1 == tests[cnt].start
110 && match[0].rm_eo == tests[cnt].end)
124 printf ("\n%u tests, %d errors\n", (int) cnt, errors);