Skip to content

Commit db5cbbc

Browse files
authored
Merge pull request #32 from demerphq/master
harden error test for perl 5.38 stop on syntax error patch
2 parents fa7ffb0 + 8441d88 commit db5cbbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/07-invalid.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ my @testcases2 =(
2121
# [error RE, perlpp options...]
2222
[qr/multiline\.txt/, $whereami . 'multiline.txt'],
2323
[qr/error.*line 12/, $whereami . 'multiline.txt'],
24-
[qr/Number found.*line 13/, $whereami . 'multiline.txt'],
24+
[qr/syntax error.*line 12/, $whereami . 'multiline.txt'],
2525

2626
# Tests with --Elines. Note: the specific line numbers here may need
2727
# to be changed if the internals of perlpp change. This is OK;
2828
# please just make sure to document the change and the reason in the
2929
# corresponding commit message.
3030
[qr/script.*-E/, '--Elines', $whereami . 'multiline.txt'],
3131
[qr/error.*line 48/, '--Elines', $whereami . 'multiline.txt'],
32-
[qr/Number found.*line 49/, '--Elines', $whereami . 'multiline.txt'],
32+
[qr/syntax error.*line 48/, '--Elines', $whereami . 'multiline.txt'],
3333
);
3434

3535
plan tests =>

0 commit comments

Comments
 (0)