From a1ed6c284a2ad191f13c640d34c2563b5c366267 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 23 Aug 2009 16:03:48 -0700 Subject: [PATCH] Extend last test case. --- posix/bug-regex29.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c index 70a6c94..bd796c6 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 () -- 2.7.4