[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

t/op/regexp.t




While trying to add a test for a regexp that causes a segfault,
I added a line to t/op/re_tests, with a 'B' in the third column,
expecting the test to be skipped.

Running ./perl -MTestInit t/op/regexp.t ended in a segfault.

Looking at the code in regexp.t, it seems that regardless of the
third column, every line with a pattern and a subject will cause
the pattern to be matched against the subject. "Skipping" just means
"report ok, regardless of the actual result".

Is this intentional? If not, I'll fix it to really skip matches.
If yes, what's the appropriate way to write a TODO test for a 
pattern that causes a segfault?



Abigail


Follow-Ups from:
Moritz Lenz <moritz@casella.verplant.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]