Skip Menu |

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

Report information
The Basics
Id: 44185
Status: resolved
Priority: 0/
Queue: XML-Easy

People
Owner: Nobody in particular
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.002
Fixed in: (no value)



Subject: Test t/read_pp hangs
Hi Test t/read_pp hangs at 76/1089. This is on a Sun-Fire-V240. The compiler is gcc 3.4.6. Perl is 5.8.7. Params::Classify is installed. Internals is not installed. Cheers
Some of the tests at about that point in the test suite involve lengthy inputs that take a long time to parse (especially in the pure Perl parser, which is what read_pp.t tests). You're probably just not giving it long enough to complete. On my home machine where I developed the code, the complete test suite takes about 35 minutes. Try testing with the "--verbose" flag, as in ./Build --verbose --test_files=t/read_pp.t This will output a line for each completed test, which will give you more feedback about the progress of the test suite. You can also compare against t/read.t (testing the much faster XS parser) to give you some idea of the expected relative parsing times. If you find a single test that doesn't complete within minutes of the previous test completing then I'd accept that it's hanging.
Subject: Re: [rt.cpan.org #44185] Test t/read_pp hangs
Date: Tue, 17 Mar 2009 08:26:37 +1100
To: bug-XML-Easy [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Thanx for the info. On Mon, 2009-03-16 at 06:03 -0400, ZEFRAM via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=44185 > > > Some of the tests at about that point in the test suite involve lengthy > inputs that take a long time to parse (especially in the pure Perl parser, > which is what read_pp.t tests). You're probably just not giving it > long enough to complete. On my home machine where I developed the code, > the complete test suite takes about 35 minutes.
That's very thorough, but impractical. Most people will assume quite reasonably, as I did, that it's hanging, and just give up. You need to do something like checking an env var to enable such long tests. Then, by default, you skip them. Visa versa, when someone sets that env var, the docs will have warned them what they're in for... Show quoted text
> Try testing with the "--verbose" flag, as in > > ./Build --verbose --test_files=t/read_pp.t > > This will output a line for each completed test, which will give you more > feedback about the progress of the test suite. You can also compare > against t/read.t (testing the much faster XS parser) to give you some > idea of the expected relative parsing times. If you find a single test > that doesn't complete within minutes of the previous test completing > then I'd accept that it's hanging.
OK. I'm just about to leave for work, so I'll try again. -- Ron Savage ron@savage.net.au http://savage.net.au/index.html
Subject: Re: [rt.cpan.org #44185] Test t/read_pp hangs
Date: Tue, 17 Mar 2009 17:42:56 +1100
To: bug-XML-Easy [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Show quoted text
> > Some of the tests at about that point in the test suite involve lengthy > > inputs that take a long time to parse (especially in the pure Perl parser, > > which is what read_pp.t tests). You're probably just not giving it > > long enough to complete. On my home machine where I developed the code, > > the complete test suite takes about 35 minutes.
> > That's very thorough, but impractical. Most people will assume quite > reasonably, as I did, that it's hanging, and just give up.
Yes, it worked, eventually :-). It took 1214 secs. I used >prove -Ilib -v t/read_pp.t Also, I don't know if it's related, but with ExtUtils::ParseXS v 2.15, I get: 521 ssapp0434 XML-Easy-0.002> perl Build.PL Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib Checking whether your kit is complete... Looks good gcc -I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE -fPIC -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -o /opt/ssapp0434/ehealth/product/5.7/tmp/compilet.o /opt/ssapp0434/ehealth/product/5.7/tmp/compilet.c gcc -G -L/usr/local/lib -o /opt/ssapp0434/ehealth/product/5.7/tmp/compilet.so /opt/ssapp0434/ehealth/product/5.7/tmp/compilet.o Checking prerequisites... * Optional prerequisite Internals is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Creating new 'Build' script for 'XML-Easy' version '0.002' 522 ssapp0434 XML-Easy-0.002> perl Build lib/XML/Easy/Content.pm -> blib/lib/XML/Easy/Content.pm lib/XML/Easy/Classify.pm -> blib/lib/XML/Easy/Classify.pm lib/XML/Easy/Syntax.pm -> blib/lib/XML/Easy/Syntax.pm lib/XML/Easy/Element.pm -> blib/lib/XML/Easy/Element.pm lib/XML/Easy/NodeBasics.pm -> blib/lib/XML/Easy/NodeBasics.pm lib/XML/Easy/Text.pm -> blib/lib/XML/Easy/Text.pm lib/XML/Easy.pm -> blib/lib/XML/Easy.pm lib/XML/Easy.xs -> lib/XML/Easy.c Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1627. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1627. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1644. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1644. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1661. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1661. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1683. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1683. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1702. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1702. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1721. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1721. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1732. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1732. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1743. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1743. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1763. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1763. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1763. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1763. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1778. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1778. Use of uninitialized value in string eq at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 484, <GEN9> line 1778. Use of uninitialized value in pattern match (m//) at /opt/eHealth/custom/bin/perl-modules/lib/ExtUtils/ParseXS.pm line 485, <GEN9> line 1778. gcc -I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE -DXS_VERSION="0.002" -DVERSION="0.002" -fPIC -c -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -o lib/XML/Easy.o lib/XML/Easy.c ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/XML/Easy/Easy.bs') gcc -G -L/usr/local/lib -o blib/arch/auto/XML/Easy/Easy.so lib/XML/Easy.o Manifying blib/lib/XML/Easy/NodeBasics.pm -> blib/libdoc/XML::Easy::NodeBasics.3 Manifying blib/lib/XML/Easy/Classify.pm -> blib/libdoc/XML::Easy::Classify.3 Manifying blib/lib/XML/Easy/Syntax.pm -> blib/libdoc/XML::Easy::Syntax.3 Manifying blib/lib/XML/Easy/Content.pm -> blib/libdoc/XML::Easy::Content.3 Manifying blib/lib/XML/Easy/Element.pm -> blib/libdoc/XML::Easy::Element.3 Manifying blib/lib/XML/Easy/Text.pm -> blib/libdoc/XML::Easy::Text.3 Manifying blib/lib/XML/Easy.pm -> blib/libdoc/XML::Easy.3 523 ssapp0434 XML-Easy-0.002> -- Ron Savage ron@savage.net.au http://savage.net.au/index.html
Subject: Re: [rt.cpan.org #44185] Test t/read_pp hangs
Date: Tue, 17 Mar 2009 17:43:53 +1100
To: bug-XML-Easy [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Sorry, forgot to mention: ./Build --verbose --test_files=t/read_pp.t just returns to the prompt instantly. -- Ron Savage ron@savage.net.au http://savage.net.au/index.html
Subject: Re: [rt.cpan.org #44185] Test t/read_pp hangs
Date: Tue, 17 Mar 2009 07:59:55 +0000
To: "ron [...] savage.net.au via RT" <bug-XML-Easy [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
ron@savage.net.au via RT wrote: Show quoted text
>./Build --verbose --test_files=t/read_pp.t > >just returns to the prompt instantly.
Oops, that was meant to be ./Build test --verbose --test_files=t/read_pp.t -zefram
I'm counting this as resolved since we've established that it does work.