Skip Menu |
 

This queue is for tickets about the Devel-Graph CPAN distribution.

Report information
The Basics
Id: 76417
Status: new
Priority: 0/
Queue: Devel-Graph

People
Owner: Nobody in particular
Requestors: myra.nelson [...] hughes.net
Cc:
AdminCc:

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



Subject: Test Errors for Devel::Graph Version 0.12
Date: Sun, 8 Apr 2012 13:54:02 -0500
To: bug-Devel-Graph [...] rt.cpan.org
From: Myra Nelson <myra.nelson [...] hughes.net>
Download (untitled) / with headers
text/plain 2.8k
I experienced a test failure while installing Devel::Graph. System and dependencies Linux 3.3.1-1-ARCH #1 SMP PREEMPT x86_64 AMD Perl Version 5.14.2 build for x86_64-linux-thread-multi Test::More Version 0.98 Test::Differences 0.61 Devel::Graph Version 0.12 Test error message PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/closure.t t/croak.t t/graphpm.t t/loop.t t/parse.t t/pod.t t/pod_cov.t t/closure.t .. ok t/croak.t .... ok t/graphpm.t .. ok PPI::Structure::ForLoop has been deprecated at /usr/share/perl5/vendor_perl/PPI/Structure/For.pm line 51. t/loop.t ..... ok # Looks like you planned 29 tests but ran 30. t/parse.t .... Dubious, test returned 255 (wstat 65280, 0xff00) All 29 subtests passed t/pod.t ...... ok t/pod_cov.t .. ok Test Summary Report ------------------- t/parse.t (Wstat: 65280 Tests: 30 Failed: 1) Failed test: 30 Non-zero exit status: 255 Parse errors: Plan (1..29) must be at the beginning or end of the TAP output Bad plan. You planned 29 tests but ran 30. Files=7, Tests=54, 1 wallclock secs ( 0.04 usr 0.02 sys + 1.46 cusr 0.20 csys = 1.72 CPU) Result: FAIL Failed 1/7 test programs. 1/54 subtests failed. make: *** [test_dynamic] Error 255 By changing parse.t from this --> BEGIN { chdir 't' if -d 't'; use lib '../lib'; use_ok ("Devel::Graph") or die($@); }; ############################################################################# # OO interface my @files; if (@ARGV) { @files = shift; plan tests => 2; } else { # get all files to test opendir(DIR, 'data') or die("Can’t opendir 'data': $!"); @files = readdir(DIR); closedir DIR; plan tests => 29; } to this --> BEGIN { chdir 't' if -d 't'; use lib '../lib'; use_ok ("Devel::Graph") or die($@); }; ############################################################################# # OO interface my @files; if (@ARGV) { @files = shift; plan tests => 2; } else { # get all files to test opendir(DIR, 'data') or die("Can’t opendir 'data': $!"); @files = readdir(DIR); closedir DIR; } All the tests pass. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/closure.t t/croak.t t/graphpm.t t/loop.t t/parse.t t/pod.t t/pod_cov.t t/closure.t .. ok t/croak.t .... ok t/graphpm.t .. ok PPI::Structure::ForLoop has been deprecated at /usr/share/perl5/vendor_perl/PPI/Structure/For.pm line 51. t/loop.t ..... ok t/parse.t .... ok t/pod.t ...... ok t/pod_cov.t .. ok All tests successful. Files=7, Tests=54, 1 wallclock secs ( 0.05 usr 0.01 sys + 1.49 cusr 0.17 csys = 1.72 CPU) Result: PASS I've attached a patch to correct this error. Myra Nelson -- Life's fun when your sick and psychotic!
Download parse.t.patch
text/x-diff 492b

Message body is not shown because sender requested not to inline it.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.