CC: | "Davis, Daran" <daran.davis [...] intel.com> |
Subject: | make test has 4 tests that fail |
Date: | Mon, 1 Aug 2016 14:46:49 +0000 |
To: | "bug-GraphViz2 [...] rt.cpan.org" <bug-GraphViz2 [...] rt.cpan.org> |
From: | "Davis, Daran" <daran.davis [...] intel.com> |
Hi,
This is related to RT ticket: 81467
Here are my particulars:
* GraphViz2-2.39
* Perl v5.14.1
* Linux Suse11
* dot - Graphviz version 2.20.3
I used perl -MCPAN -e shell to install GraphViz2 and its dependencies.
The following line performs the make test and shows the failures:
Running make test
PERL_DL_NONLAZY=1 "/nfs/site/itools/em64t_SLES11/pkgs/perl/5.14.1/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/test.t .. 24/?
# Failed test 'scripts/rank.sub.graph.1.pl runs without error'
# at t/test.t line 38.
# Failed test 'scripts/rank.sub.graph.2.pl runs without error'
# at t/test.t line 38.
t/test.t .. 31/?
# Failed test 'scripts/rank.sub.graph.3.pl runs without error'
# at t/test.t line 38.
# Failed test 'scripts/rank.sub.graph.4.pl runs without error'
# at t/test.t line 38.
t/test.t .. 37/? # Looks like you failed 4 tests of 43.
t/test.t .. Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/43 subtests
Test Summary Report
-------------------
t/test.t (Wstat: 1024 Tests: 43 Failed: 4)
Failed tests: 29-32
Non-zero exit status: 4
Files=1, Tests=43, 7 wallclock secs ( 0.03 usr 0.01 sys + 3.82 cusr 1.77 csys = 5.63 CPU)
Result: FAIL
Failed 1/1 test programs. 4/43 subtests failed.
make: *** [test_dynamic] Error 4
RSAVAGE/GraphViz2-2.39.tgz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports RSAVAGE/GraphViz2-2.39.tgz
The following ok function in t/test.t will report a failure because $stderr has a non-zero value:
ok(length($stderr) == 0, "$script{$key} runs without error");
The $stderr value is "Warning: using box for unknown shape square"
The tests (scripts) that failed are called from t/test.t and the following scripts which are run by t/test.t report the warning when run:
scripts/rank.sub.graph.1.pl
scripts/rank.sub.graph.2.pl
scripts/rank.sub.graph.3.pl
scripts/rank.sub.graph.4.pl
For example, scripts/rank.sub.graph.1.pl has the following line:
line42:$graph -> add_node(name => 'Murrumbeena', shape => 'square', color => 'orange');
According to the following doc a shape of square is not supported which is the reason for the warning.
http://www.graphviz.org/doc/info/shapes.html
I believe the fix is to chage shape => 'square' to shape => 'box' in the 4 scripts listed above.
Thanks for your time
Daran
Message body is not shown because it is too large.