Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 69330
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: chrishammond [...] ymail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.78
Fixed in: (no value)



Subject: Test t/49global_extent.t fails for libxml2 < 2.6.27 - tries to plan twice
Firstly, thank you for XML::LibXML! On systems with libxml2 < 2.6.27, the test t/49global_extent.t fails with: 1..1 You tried to plan twice at t/49global_extent.t line 7. # Looks like your test exited with 255 before it could output anything. The below patch resolves this: +++ t/49global_extent.t 2011-07-07 07:48:49.000000000 -0400 @@ -1,11 +1,16 @@ use strict; use warnings; -use Test::More tests => 1; +use Test::More; use XML::LibXML; -if (XML::LibXML::LIBXML_VERSION() < 20627) { - plan skip_all => "skipping for libxml2 < 2.6.27"; +BEGIN { + if (XML::LibXML::LIBXML_VERSION() < 20627) { + plan skip_all => "skipping for libxml2 < 2.6.27"; + } + else { + plan tests => 1; + } } sub handler { Thanks! Chris
Hi Chris, Thanks for the report. This is fixed in the repository: https://bitbucket.org/shlomif/perl-xml-libxml It will be available in XML-LibXML-1.79 which will be released in a short while.
Resolved in the repository - will be uploaded to CPAN later today.
Subject: Re: [rt.cpan.org #69330] Resolved: Test t/49global_extent.t fails for libxml2 < 2.6.27 - tries to plan twice
Date: Fri, 8 Jul 2011 12:36:04 +0100 (BST)
To: bug-XML-LibXML [...] rt.cpan.org
From: Chris Hammond <chrishammond [...] ymail.com>
Thank you for the quick response, Shlomi!
Resolving again due to the reply. Please don't reply to this bug again, because this will reopen it.