Subject: | "cpan -i Perl::Tidy" fails the tests on Linux |
example output:
---------------
cp lib/Perl/Tidy/VerticalAligner.pm blib/lib/Perl/Tidy/VerticalAligner.pm
cp lib/Perl/Tidy/Debugger.pm blib/lib/Perl/Tidy/Debugger.pm
cp lib/Perl/Tidy/Formatter.pm blib/lib/Perl/Tidy/Formatter.pm
cp lib/Perl/Tidy/VerticalAligner/Alignment.pm blib/lib/Perl/Tidy/VerticalAligner/Alignment.pm
cp lib/Perl/Tidy/LineSink.pm blib/lib/Perl/Tidy/LineSink.pm
cp lib/Perl/Tidy/Logger.pm blib/lib/Perl/Tidy/Logger.pm
cp lib/Perl/Tidy.pod blib/lib/Perl/Tidy.pod
cp lib/Perl/Tidy/IOScalarArray.pm blib/lib/Perl/Tidy/IOScalarArray.pm
cp lib/Perl/Tidy/FileWriter.pm blib/lib/Perl/Tidy/FileWriter.pm
cp lib/Perl/Tidy/Diagnostics.pm blib/lib/Perl/Tidy/Diagnostics.pm
cp lib/Perl/Tidy/VerticalAligner/Line.pm blib/lib/Perl/Tidy/VerticalAligner/Line.pm
cp lib/Perl/Tidy/IndentationItem.pm blib/lib/Perl/Tidy/IndentationItem.pm
cp lib/Perl/Tidy/Tokenizer.pm blib/lib/Perl/Tidy/Tokenizer.pm
cp lib/Perl/Tidy/IOScalar.pm blib/lib/Perl/Tidy/IOScalar.pm
cp lib/Perl/Tidy/DevNull.pm blib/lib/Perl/Tidy/DevNull.pm
cp lib/Perl/Tidy/HtmlWriter.pm blib/lib/Perl/Tidy/HtmlWriter.pm
cp lib/Perl/Tidy/LineSource.pm blib/lib/Perl/Tidy/LineSource.pm
cp lib/Perl/Tidy/LineBuffer.pm blib/lib/Perl/Tidy/LineBuffer.pm
cp lib/Perl/Tidy.pm blib/lib/Perl/Tidy.pm
Manifying 3 pod documents
SHANCOCK/Perl-Tidy-20181117.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 "/home/shlomif/apps/perl/brew/perls/perl-5.26.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/filter_example.t .. 1/1 # Test 1 got: "use Method::Signatures::Simple;\nmethod foo1 { $self->bar }\n\n# with signature\nmethod foo2 ( $bar, %opts )\n{\n $self->bar( reverse $bar ) if $opts{rev};\n}\n\n# attributes\nmethod foo3 : lvalue\n{\n $self->{foo};\n}\n\n# change invocant name\nmethod foo4 ($class: $bar) { $class->bar($bar) }\n" (t/filter_example.t at line 65)
# Expected: "use Method::Signatures::Simple;\nmethod foo1 { $self->bar }\n\n# with signature\nmethod foo2 ( $bar, %opts ) {\n $self->bar( reverse $bar ) if $opts{rev};\n}\n\n# attributes\nmethod foo3 : lvalue {\n $self->{foo};\n}\n\n# change invocant name\nmethod
foo4 ($class: $bar) { $class->bar($bar) }\n"
# (Install the Algorithm::Diff module to have differences in multiline
# output explained. You might also set the PERL_TEST_DIFF environment
# variable to run a diff program on the output.)
# t/filter_example.t line 65 is: ok( $output, $expect );
t/filter_example.t .. Failed 1/1 subtests
t/snippets1.t ....... ok
t/snippets10.t ...... ok
t/snippets11.t ...... ok
t/snippets12.t ...... ok
t/snippets13.t ...... ok
t/snippets2.t ....... ok
t/snippets3.t ....... ok
t/snippets4.t ....... ok
t/snippets5.t ....... ok
t/snippets6.t ....... ok
t/snippets7.t ....... ok
t/snippets8.t ....... ok
t/snippets9.t ....... ok
t/test.t ............ ok
t/testsa.t .......... ok
t/testss.t .......... ok
t/testwide.t ........ ok
Test Summary Report
-------------------
t/filter_example.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Files=18, Tests=261, 19 wallclock secs ( 0.12 usr 0.03 sys + 19.19 cusr 0.23 csys = 19.57 CPU)
Result: FAIL
Failed 1/18 test programs. 1/261 subtests failed.
make: *** [Makefile:859: test_dynamic] Error 255
SHANCOCK/Perl-Tidy-20181117.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SHANCOCK/Perl-Tidy-20181117.tar.gz
[shlomif@telaviv1 ~]$
------------
tried with both perl 5.28.0 and 5.26.2 from perlbrew.