Skip Menu |
 

This queue is for tickets about the Plack-Middleware-Log-Minimal CPAN distribution.

Report information
The Basics
Id: 117402
Status: open
Priority: 0/
Queue: Plack-Middleware-Log-Minimal

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: (no value)

Attachments
Plack-Middleware-Log-Minimal-unrecognized-left-brace.diff



Subject: Unescaped left brace in regex is illegal here in regex
Download (untitled) / with headers
text/plain 637b
Tests fail with bleadperl (e.g. perl 5.25.4): Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\[CRITICAL\] \[/bar\] crit { <-- HERE 'foo'\s*=>\s*'bar'}/ at t/01_basic.t line 38. t/01_basic.t ..... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/CRITICAL\|\e\[.+?crit { <-- HERE 'foo'\s*=>\s*'bar'}\e\[.+?\|/ at t/02_fomatter.t line 47. t/02_fomatter.t .. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run See also http://matrix.cpantesters.org/?dist=Plack-Middleware-Log-Minimal%200.06
Download (untitled) / with headers
text/plain 830b
On Thu Sep 01 12:54:08 2016, SREZIC wrote: Show quoted text
> Tests fail with bleadperl (e.g. perl 5.25.4): > > Unescaped left brace in regex is illegal here in regex; marked by <-- > HERE in m/\[CRITICAL\] \[/bar\] crit { <-- HERE 'foo'\s*=>\s*'bar'}/ > at t/01_basic.t line 38. > t/01_basic.t ..... > Dubious, test returned 255 (wstat 65280, 0xff00) > No subtests run > Unescaped left brace in regex is illegal here in regex; marked by <-- > HERE in m/CRITICAL\|\e\[.+?crit { <-- HERE > 'foo'\s*=>\s*'bar'}\e\[.+?\|/ at t/02_fomatter.t line 47. > t/02_fomatter.t .. > Dubious, test returned 255 (wstat 65280, 0xff00) > No subtests run > > > See also http://matrix.cpantesters.org/?dist=Plack-Middleware-Log- > Minimal%200.06
Applying a patch along the lines of the attachment should resolve the problem. Thank you very much. Jim Keenan
Subject: Plack-Middleware-Log-Minimal-unrecognized-left-brace.diff
diff -u -r t/01_basic.t corrected_t/01_basic.t --- t/01_basic.t 2011-05-09 02:49:24.000000000 -0400 +++ corrected_t/01_basic.t 2016-12-20 11:14:39.217061170 -0500 @@ -35,7 +35,7 @@ unlike $warn, qr/\[DEBUG\] \[\/bar\] debug /; like $warn, qr/\[INFO\] \[\/bar\] info /; like $warn, qr/\[WARN\] \[\/bar\] warn /; - like $warn, qr/\[CRITICAL\] \[\/bar\] crit {'foo'\s*=>\s*'bar'}/; + like $warn, qr/\[CRITICAL\] \[\/bar\] crit \{'foo'\s*=>\s*'bar'}/; } diff -u -r t/02_fomatter.t corrected_t/02_fomatter.t --- t/02_fomatter.t 2011-07-26 00:44:40.000000000 -0400 +++ corrected_t/02_fomatter.t 2016-12-20 11:14:54.815931966 -0500 @@ -44,7 +44,7 @@ }; unlike $warn, qr/INFO\|info\|/; like $warn, qr/WARN\|\e\[.+?warn\e\[.+?|/; - like $warn, qr/CRITICAL\|\e\[.+?crit {'foo'\s*=>\s*'bar'}\e\[.+?\|/; + like $warn, qr/CRITICAL\|\e\[.+?crit \{'foo'\s*=>\s*'bar'}\e\[.+?\|/; }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.