r68893 - in /trunk/libtest-www-mechanize-perl/debian: changelog patches/ patches/01-new-test-longstring.patch patches/series

roam-guest at users.alioth.debian.org roam-guest at users.alioth.debian.org
Thu Feb 17 14:06:32 UTC 2011


Author: roam-guest
Date: Thu Feb 17 14:05:24 2011
New Revision: 68893

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=68893
Log:
Add a patch to handle the libtest-longstring-perl >= 0.15 format.

Closes:		#613731
Reported by:	Dominic Hargreaves <dom at earth.li>

Added:
    trunk/libtest-www-mechanize-perl/debian/patches/
    trunk/libtest-www-mechanize-perl/debian/patches/01-new-test-longstring.patch
    trunk/libtest-www-mechanize-perl/debian/patches/series
Modified:
    trunk/libtest-www-mechanize-perl/debian/changelog

Modified: trunk/libtest-www-mechanize-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/changelog?rev=68893&op=diff
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/changelog (original)
+++ trunk/libtest-www-mechanize-perl/debian/changelog Thu Feb 17 14:05:24 2011
@@ -1,8 +1,13 @@
 libtest-www-mechanize-perl (1.30-2) UNRELEASED; urgency=low
 
+  [ Ansgar Burchardt ]
   * Update my email address.
 
- -- Ansgar Burchardt <ansgar at debian.org>  Mon, 01 Nov 2010 11:17:29 +0100
+  [ Peter Pentchev ]
+  * Add the 01-new-test-longstring patch to fix the tests with recent
+    versions of libtest-longstring-perl.  Closes: #613731
+
+ -- Peter Pentchev <roam at ringlet.net>  Thu, 17 Feb 2011 16:01:37 +0200
 
 libtest-www-mechanize-perl (1.30-1) unstable; urgency=low
 

Added: trunk/libtest-www-mechanize-perl/debian/patches/01-new-test-longstring.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/patches/01-new-test-longstring.patch?rev=68893&op=file
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/patches/01-new-test-longstring.patch (added)
+++ trunk/libtest-www-mechanize-perl/debian/patches/01-new-test-longstring.patch Thu Feb 17 14:05:24 2011
@@ -1,0 +1,34 @@
+Description: Fix the tests with recent versions of Test-LongString.
+Forwarded: no
+Bug-Debian: http://bugs.debian.org/613731
+Author: Peter Pentchev <roam at ringlet.net>
+Last-Update: 2011-02-17
+
+--- a/t/content_lacks.t
++++ b/t/content_lacks.t
+@@ -2,6 +2,7 @@
+ 
+ use strict;
+ use warnings;
++use version 0.77;
+ use Test::More tests => 5;
+ use Test::Builder::Tester;
+ 
+@@ -31,11 +32,16 @@
+ $mech->content_lacks( 'Mungo eats cheese');
+ test_test( 'Finds the lacks - default desc' );
+ 
++my ($longline, $v1, $v2) = ('');
++$v1 = version->parse($Test::LongString::VERSION);
++$v2 = version->parse('0.15');
++$longline = ' (line 3 column 16)' if ($v1 >= $v2);
++
+ test_out( q{not ok 1 - Shouldn't say it's a test page} );
+ test_fail(+4);
+ test_diag(q(    searched: "<html>\x{0a}    <head>\x{0a}        <title>Test Page</title>"...) );
+ test_diag(q(   and found: "Test Page") );
+-test_diag(q( at position: 33) );
++test_diag(qq( at position: 33$longline) );
+ $mech->content_lacks( 'Test Page', q{Shouldn't say it's a test page} );
+ test_test( 'Handles not finding it' );
+ 

Added: trunk/libtest-www-mechanize-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtest-www-mechanize-perl/debian/patches/series?rev=68893&op=file
==============================================================================
--- trunk/libtest-www-mechanize-perl/debian/patches/series (added)
+++ trunk/libtest-www-mechanize-perl/debian/patches/series Thu Feb 17 14:05:24 2011
@@ -1,0 +1,1 @@
+01-new-test-longstring.patch




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