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
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\[.+?\|/;
}