Skip to content

Commit

Permalink
Extend last test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 23, 2009
1 parent 8a7cea0 commit a1ed6c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion posix/bug-regex29.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ do_test (void)
char buf[100];
regerror(e, &r, buf, sizeof (buf));
printf ("e = %d (%s)\n", e, buf);
return e != REG_BADBR;
int res = e != REG_BADBR;

e = regcomp(&r, "xy\\{4,5a\\}zabc", 0);
regerror(e, &r, buf, sizeof (buf));
printf ("e = %d (%s)\n", e, buf);
res |= e != REG_BADBR;

return res;
}

#define TEST_FUNCTION do_test ()
Expand Down

0 comments on commit a1ed6c2

Please sign in to comment.