[libtext-micromason-perl] 01/05: Add patch to fix test failure

gregor herrmann gregoa at debian.org
Sun Jun 29 17:12:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libtext-micromason-perl.

commit e23155f38ec9ad8bd154cd46849bc581120041d5
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jun 29 19:08:56 2014 +0200

    Add patch to fix test failure
    
    caused by line-number bugfix in perl 5.19.
    
    Closes: #753043
---
 debian/patches/series                 |  1 +
 debian/patches/test-linenumbers.patch | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 1a95afb..c3c859b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-changes-pod.patch
+test-linenumbers.patch
diff --git a/debian/patches/test-linenumbers.patch b/debian/patches/test-linenumbers.patch
new file mode 100644
index 0000000..c2d419b
--- /dev/null
+++ b/debian/patches/test-linenumbers.patch
@@ -0,0 +1,20 @@
+Description: perl 5.19 fixed a line-number bug
+ allow both old and new line-number in test
+Origin: vendor
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=92771
+Bug-Debian: https://bugs.debian.org/753043
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-06-29
+
+--- a/t/08-errors.t
++++ b/t/08-errors.t
+@@ -34,7 +34,7 @@
+ 
+     is eval { $m->compile( text => $scr_mobj ); 1 }, undef, "template with error dies";
+     ok my @lines = split(/\n/, $@), 'multiline output in $@';
+-    like shift @lines, qr{MicroMason compilation failed: syntax error at text template \(compiled at t/08-errors.t line \d+\) line 8},
++    like shift @lines, qr{MicroMason compilation failed: syntax error at text template \(compiled at t/08-errors.t line \d+\) line [89]},
+         'first line of $@ describes the error location'
+             or diag $@;
+     like shift @lines, qr/^$/, 'second line of $@ is blank'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtext-micromason-perl.git



More information about the Pkg-perl-cvs-commits mailing list