1 # This set of tests is run only with the 8-bit library. It tests the POSIX
2 # interface, which is supported only with the 8-bit library. This test should
3 # not be run with JIT (which is not available for the POSIX interface).
8 # Test some invalid options
11 ** Ignored with POSIX interface: auto_callout
15 ** Ignored with POSIX interface: find_limits
20 ** Ignored with POSIX interface: partial_hard
23 /a(())bc/parens_nest_limit=1
24 ** Ignored with POSIX interface: parens_nest_limit
26 /abc/allow_surrogate_escapes,max_pattern_length=2
27 ** Ignored with POSIX interface: allow_surrogate_escapes max_pattern_length
54 0: the quick brown fox
57 No match: POSIX code 17: match failed
59 /the quick brown fox/i
61 0: the quick brown fox
63 0: The Quick Brown Fox
68 No match: POSIX code 17: match failed
77 Failed: POSIX code 15: bad back reference at offset 6
82 No match: POSIX code 17: match failed
90 aaaabbbbzzzz\=ovector=0
91 Matched without capture
92 aaaabbbbzzzz\=ovector=1
94 aaaabbbbzzzz\=ovector=2
105 No match: POSIX code 17: match failed
117 Matched with REG_NOSUB
119 /a(?P<name>b)c/posix_nosub
121 Matched with REG_NOSUB
125 Matched with REG_NOSUB
132 No match: POSIX code 17: match failed
143 ** Ignored with POSIX interface: info
149 Failed: POSIX code 9: bad escape sequence at offset 4
152 Failed: POSIX code 11: unbalanced () at offset 6
155 Failed: POSIX code 3: pattern error at offset 6
157 /abcd/substitute_extended
158 ** Ignored with POSIX interface: substitute_extended
160 /\[A]{1000000}**/expand,regerror_buffsize=31
161 Failed: POSIX code 4: ? * + invalid at offset 100000
162 ** regerror() message truncated
164 /\[A]{1000000}**/expand,regerror_buffsize=32
165 Failed: POSIX code 4: ? * + invalid at offset 1000001
169 ** Ignored with POSIX interface: offset
170 Matched with REG_NOSUB
174 Start of matched string is beyond its end - displaying from end to start.
179 acdef\=posix_startend=2:4
182 acde\=posix_startend=2
187 No match: POSIX code 17: match failed
188 acdef\=posix_startend=2
189 No match: POSIX code 17: match failed
192 a\x{00}b\=posix_startend=0:3
196 A\x{00}B\=posix_startend=0:3
207 /a\b(c/literal,posix,dotall
208 Failed: POSIX code 16: bad argument at offset 0
217 123ace\=posix_startend=2:6
224 # End of testdata/testinput18