compused has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

Could a wise monk advise if I need to worry about these two solitary 'make test' errors? Its a linux busybox NAS platform

1. First one:

./perl harness ./porting/manifest.t ..
Failed 1/9950 subtests, at the last line listed here (line 33):
# Test that MANIFEST uses tabs - not spaces - after the name of the fi +le. while (<$m>) { chomp; unless( /\s/ ) { push @files, $_; # no need for further tests on lines without whitespace (i.e., + filename only) next; } my ($file, $separator) = /^(\S+)(\s+)/; push @files, $file; isnt($file, undef, "Line $. doesn't start with a blank") or next; # Remember, we're running from t/ ok(-f "../$file", "File $file exists");

2. Second one

./perl harness ./op/magic.t
Failed 1/87 subtests at the last line (line 528) below:
SKIP: { skip("\$0 check only on Linux and FreeBSD", 2) unless $^O =~ /^(linux|freebsd)$/ && open CMDLINE, "/proc/$$/cmdline"; chomp(my $line = scalar <CMDLINE>); my $me = (split /\0/, $line)[0]; is $me, $0, 'altering $0 is effective (testing with /proc/)'; close CMDLINE; # perlbug #22811 my $mydollarzero = sub { my($arg) = shift; $0 = $arg if defined $arg; # In FreeBSD the ps -o command= will cause # an empty header line, grab only the last line. my $ps = (`ps -o command= -p $$`)[-1]; return if $?; chomp $ps; printf "# 0[%s]ps[%s]\n", $0, $ps; $ps; }; my $ps = $mydollarzero->("x"); ok(!$ps # we allow that something goes wrong with the ps +command
Thanks to anyone with the wisdom!

update

I have fixed the magic.t problem via pointing to a newer ps busybox command

Replies are listed 'Best First'.
Re: "make test" errors
by davido (Cardinal) on Feb 11, 2012 at 17:38 UTC

    Since per your update you've solved the latter I'll address the first one. It certainly doesn't seem like a deal-breaker to me. But to be thorough you could look in MANIFEST to see what is causing the test to fail. MANIFEST files are pretty straightforward, so given the test description it should be easy enough to fix your MANIFEST, 'make test' again, and move on.


    Dave

      Thanks learned David Monk. You have help me solve it. I agree my skills are rudimentary but enjoy learning this way and really appreciate when help arrives!
      MANIFEST contained a line that referred to a non-existent file:

      cpan/Archive-Extract/t/src/y.tar.gz
      This was in line 38
      I deleted this -->test PASSES!
      I have one final other test failure but will open a new post!
A reply falls below the community's threshold of quality. You may see it by logging in.