projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ae83e1
)
Add a testcase for an old regex bug.
author
Paolo Borelli
<pborelli@gnome.org>
Tue, 3 Jan 2012 10:49:55 +0000
(11:49 +0100)
committer
Paolo Borelli
<pborelli@gnome.org>
Tue, 3 Jan 2012 20:17:48 +0000
(21:17 +0100)
Add a testcase for bug #455640, which was fixed in PCRE versions newer
than 7.2.
glib/tests/regex.c
patch
|
blob
|
history
diff --git
a/glib/tests/regex.c
b/glib/tests/regex.c
index
7f7cc65
..
6afa194
100644
(file)
--- a/
glib/tests/regex.c
+++ b/
glib/tests/regex.c
@@
-2298,6
+2298,9
@@
main (int argc, char *argv[])
TEST_MATCH("a#\nb", G_REGEX_EXTENDED, G_REGEX_MATCH_NEWLINE_CR, "a", -1, 0, 0, FALSE);
TEST_MATCH("a#\nb", G_REGEX_EXTENDED | G_REGEX_NEWLINE_CR, 0, "a", -1, 0, 0, TRUE);
+ /* This failed with PCRE 7.2 (gnome bug #455640) */
+ TEST_MATCH(".*$", 0, 0, "\xe1\xbb\x85", -1, 0, 0, TRUE);
+
/* TEST_MATCH_NEXT#(pattern, string, string_len, start_position, ...) */
TEST_MATCH_NEXT0("a", "x", -1, 0);
TEST_MATCH_NEXT0("a", "ax", -1, 1);