Subject: | [PATCH] t/06-compile.t fails on bleadperl |
On bleadperl, the "Use of unitialized variable" warnings actually
include the name of the variable. That's good news for tracing these
issues, but it causes HTML::Mason to fail tests in t/06-compile.t.
Below is a patch that fixes this in 5.8.7 and bleadperl.
--- HTML-Mason-1.32/t/06-compiler.t 2006-01-03 12:01:00.000000000 -0600
+++ HTML-Mason-patch/t/06-compiler.t 2006-01-17 14:12:23.000000000 -0600
@@ -1097,7 +1097,7 @@
expect => <<'EOF',
x is 2
EOF
- expect_warnings => qr/Use of uninitialized
value in addition/,
+ expect_warnings => qr/Use of uninitialized
value(?: | \$x )in addition/,
);
#------------------------------------------------------------
@@ -1112,7 +1112,7 @@
expect => <<'EOF',
x is 2
EOF
- expect_warnings => qr/Use of uninitialized
value in addition/,
+ expect_warnings => qr/Use of uninitialized
value(?: | \$x )in addition/,
);
#------------------------------------------------------------