summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-08-23 16:03:48 -0700
committerUlrich Drepper <drepper@redhat.com>2009-08-23 16:03:48 -0700
commita1ed6c284a2ad191f13c640d34c2563b5c366267 (patch)
tree65c594071037aaca594a514a4ec729a6c700b12f /posix
parent8a7cea019947a68e641e9201813fe01ba35cfd1a (diff)
downloadglibc-a1ed6c284a2ad191f13c640d34c2563b5c366267.tar.gz
glibc-a1ed6c284a2ad191f13c640d34c2563b5c366267.tar.xz
glibc-a1ed6c284a2ad191f13c640d34c2563b5c366267.zip
Extend last test case.
Diffstat (limited to 'posix')
-rw-r--r--posix/bug-regex29.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c
index 70a6c94cc6..bd796c6c2a 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 ()