From: Ulrich Drepper Date: Sun, 23 Aug 2009 23:03:48 +0000 (-0700) Subject: Extend last test case. X-Git-Tag: glibc-2.10.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3262a69480e933fd7e7ae8cf46eac258fe66c6a9;p=thirdparty%2Fglibc.git Extend last test case. (cherry picked from commit a1ed6c284a2ad191f13c640d34c2563b5c366267) --- diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c index 70a6c94cc60..bd796c6c2a2 100644 --- a/posix/bug-regex29.c +++ b/posix/bug-regex29.c @@ -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 ()