regex test: expect ASSERTION_EXPECTED for /(?(?<ab))/ with PCRE 8.38
commit855594c4de5acaea53bb413c6302d19ff7befd17
authorSimon McVittie <smcv@debian.org>
Wed, 23 Dec 2015 15:03:16 +0000 (23 15:03 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 14 Jan 2016 12:54:25 +0000 (14 12:54 +0000)
tree8dc25f5ddf9c64346dba9de6b4472f2296f9fefc
parent86c5d8978d75f88aaa14ab8ed6186212abcb8f19
regex test: expect ASSERTION_EXPECTED for /(?(?<ab))/ with PCRE 8.38

PCRE 8.38 changed the parsing of this invalid regex. It still fails,
but with a different error (since PCRE r1539,
<http://vcs.pcre.org/pcre?view=revision&revision=1539>).

The regex /(?P<sub>foo)\g<sub/ used to raise MISSING_BACK_REFERENCE but
now raises MISSING_SUBPATTERN_NAME_TERMINATOR, so we can still have a
test for the latter.

Signed-off-by: Simon McVittie <smcv@debian.org>
Reviewed-by: Emmanuele Bassi <ebassi@gnome.org>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=759808
glib/tests/regex.c