Part of the libregex functionality leaked into the tests it shares with the standard regex(3). Introduce a P flag to set the REG_POSIX cflag to indicate that libc regex should effectively do nothing while libregex should specifically run it in non-extended mode. This unbreaks the libc/regex test run. Reported by: Jenkins
24 lines
387 B
Plaintext
24 lines
387 B
Plaintext
# metacharacters, backslashes
|
|
a.c & abc abc
|
|
a[bc]d & abd abd
|
|
a\*c & a*c a*c
|
|
a\\b & a\b a\b
|
|
a\\\*b & a\*b a\*b
|
|
# Begin FreeBSD
|
|
a\bc &CP EESCAPE
|
|
# End FreeBSD
|
|
a\ &C EESCAPE
|
|
a\\bc & a\bc a\bc
|
|
\{ bC BADRPT
|
|
a\[b & a[b a[b
|
|
a[b &C EBRACK
|
|
# trailing $ is a peculiar special case for the BRE code
|
|
a$ & a a
|
|
a$ & a$
|
|
a\$ & a
|
|
a\$ & a$ a$
|
|
a\\$ & a
|
|
a\\$ & a$
|
|
a\\$ & a\$
|
|
a\\$ & a\ a\
|