projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7cea0
)
Extend last test case.
author
Ulrich Drepper
<drepper@redhat.com>
Sun, 23 Aug 2009 23:03:48 +0000
(16:03 -0700)
committer
Ulrich Drepper
<drepper@redhat.com>
Sun, 23 Aug 2009 23:03:48 +0000
(16:03 -0700)
posix/bug-regex29.c
patch
|
blob
|
history
diff --git
a/posix/bug-regex29.c
b/posix/bug-regex29.c
index
70a6c94
..
bd796c6
100644
(file)
--- 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 ()