in reply to help installing Devel::NYTProf under Cygwin

G'day Special_K,

I tried the installation myself and got the same result. I edited my CPAN Tester Report as follows:

------------------------------ TESTER COMMENTS ------------------------------ Additional comments from tester: I'm following up a question on PerlMonks: "help installing Devel::NYTProf under Cygwin" (https://www.perlmonks.org/?node_id=11135967). The error I have below is identical to the one posted on PerlMonks. The "CPAN Testers Matrix: Devel-NYTProf 6.10 (latest distribution)" (http://matrix.cpantesters.org/?dist=Devel-NYTProf+6.10) only has one report for Cygwin (https://www.cpantesters.org/cpan/report/a4dfd892-7306-1014-8def-c9dd7 +5d8a230) which is an identical FAIL. I see from https://github.com/timbunce/devel-nytprof/blob/master/t/50- +errno.t that the problem line is in a SKIP block: skip ... if($^O eq 'VMS'); Unless that test is essential for Cygwin, perhaps consider: skip ... if($^O eq 'VMS' or $^O eq 'cygwin');

The CPAN Testers Matrix typically takes a while to update: my report may not appear for some time (which is why I posted it here). I hope there's sufficient information for you to see what's going on; ask if that's not the case.

Given you got very close to success:

Failed 1/55 test programs. 1/4949 subtests failed.

I'd recommend you take the force option.

Update: Force worked for me.

cpan[2]> force install Devel::NYTProf ... JKEENAN/Devel-NYTProf-6.10.tar.gz /usr/bin/make install -- OK

— Ken

Replies are listed 'Best First'.
Re^2: help installing Devel::NYTProf under Cygwin
by Special_K (Pilgrim) on Aug 20, 2021 at 17:08 UTC

    > I hope there's sufficient information for you to see what's going on; ask if that's not the case.

    The section of code that is failing is:
    SKIP: { skip 'On VMS buffer is not flushed', 1 if ($^O eq 'VMS'); cmp_ok $size1, '>', 0, "$nytprof_out should not be empty"; }

    Is SKIP just an arbitrary label?
    What does 'skip' do?
    How do I know if this test is safe to skip for Cygwin?

      "The section of code that is failing is ..."

      That statement is completely wrong.

      Your own OP has:

      # Failed test '$! should not be altered by NYTProf i/o' # at t/50-errno.t line 58.

      The URL I provided (https://github.com/timbunce/devel-nytprof/blob/master/t/50-errno.t) links to code with line numbers. The SKIP block starting at line 50, and ending on line 59, contains "t/50-errno.t line 58".

      "Is SKIP just an arbitrary label?"

      No, it's not. Probably the most frequently used test module is the core Test::More (wherein you'll find SKIP). If you're going to investigate "*.t" files, you should be familiar with this module; although, be aware that there are many other modules in the Test:: namespace. I'm a strong advocate of testing and would recommend that you read up on Test::More anyway.

      "How do I know if this test is safe to skip for Cygwin?"

      The short answer is: "you don't". A longer answer would, to some extent, depend on your definition of "safe". It's a developer's tool so your clients will be unaffected. If you are genuinely concerned, don't use this module.

      — Ken