Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ignore commented out error message (#1326)
- Loading branch information
1 parent
1275db8
commit 5919fe6
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use Test::More; | ||
use JSON::PP qw/decode_json/; | ||
|
||
open my $fh, '<', 'perl.json' or die "$!"; | ||
my $data = do {local $/; <$fh>}; | ||
close $fh; | ||
|
||
my $matcher = decode_json($data); | ||
my $problem_matcher = $matcher->{problemMatcher}; | ||
my $regexp = $problem_matcher->[0]{pattern}[0]{regexp}; | ||
diag $regexp; | ||
|
||
like 'Bareword "foobar" not allowed while "strict subs" in use at t/errors.pl line 4.', qr/$regexp/, 'systax error'; | ||
like 'some error!! at t/errors.pl line 4.', qr/$regexp/, 'die'; | ||
like 'some # error!! at t/errors.pl line 4.', qr/$regexp/, 'die'; | ||
|
||
# from: https://github.com/shogo82148/actions-setup-perl/issues/1302 | ||
unlike ' # at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line 21.', qr/$regexp/, 'issue 1302'; | ||
unlike "# at /home/runner/work/perlTest/perlTest/t/FHEM/98_HELLO/00_define.t line [22]", qr/$regexp/, 'issue 1302'; | ||
done_testing; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use strict; | ||
use warnings; | ||
|
||
die "some # error!!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters