Skip Menu |

This queue is for tickets about the HTML-InfoVis CPAN distribution.

Report information
The Basics
Id: 74472
Status: resolved
Priority: 0/
Queue: HTML-InfoVis

People
Owner: Nobody in particular
Requestors: macros123 [...] gmail.com
Cc:
AdminCc:

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



Subject: 02_json_graph.t test fails due to a trailing \n
Date: Sat, 28 Jan 2012 10:54:17 +0100
To: bug-HTML-InfoVis [...] rt.cpan.org
From: Alberto <macros123 [...] gmail.com>
HTML-InfoVis-0.02 This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi Linux 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux $ cpan HTML::InfoVis::Graph [cut] Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/01_compile.t ..... ok t/02_json_graph.t .. 1/2 # Failed test '->as_json ok' # at t/02_json_graph.t line 20. # got: '[ # { # "adjacencies" : [], # "id" : "bar", # "name" : "bar" # }, # { # "adjacencies" : [ # "bar" # ], # "id" : "foo", # "name" : "foo" # } # ] # # ' # expected: '[ # { # "adjacencies" : [], # "id" : "bar", # "name" : "bar" # }, # { # "adjacencies" : [ # "bar" # ], # "id" : "foo", # "name" : "foo" # } # ] # ' # Looks like you failed 1 test of 2. t/02_json_graph.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/97_meta.t ........ skipped: Author tests not required for installation t/98_pod.t ......... skipped: Author tests not required for installation t/99_pmv.t ......... skipped: Author tests not required for installation Test Summary Report ------------------- t/02_json_graph.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=5, Tests=3, 0 wallclock secs ( 0.02 usr 0.02 sys + 0.25 cusr 0.02 csys = 0.31 CPU) Result: FAIL Failed 1/5 test programs. 1/3 subtests failed. make: *** [test_dynamic] Error 255 ADAMK/HTML-InfoVis-0.02.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ADAMK/HTML-InfoVis-0.02.tar.gz Running make install make test had returned bad status, won't install without force Personally I fixed it removing the "\n" from 20is( "$json", <<'END_JSON', '->as_json ok' ); -- Alberto Cerato
Fixed in version 0.03