1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: the diagnostic messages changes in perl 5.21.4
adjust test to work with old and new messages according to used perl version.
Origin: vendor
Bug: https://github.com/doy/parse-keyword/issues/9
Bug-Debian: https://bugs.debian.org/802939
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-10-25
--- a/t/error.t
+++ b/t/error.t
@@ -61,10 +61,16 @@
is($out, '');
is(
$err,
+ $^V lt v5.21.4 ?
<<'ERR'
Global symbol "$baz" requires explicit package name at t/error.pl line 9.
Execution of t/error.pl aborted due to compilation errors.
ERR
+ :
+ <<'ERR'
+Global symbol "$baz" requires explicit package name (did you forget to declare "my $baz"?) at t/error.pl line 9.
+Execution of t/error.pl aborted due to compilation errors.
+ERR
);
isnt($exit, 0);
}
|