in reply to Re: help installing Devel::NYTProf under Cygwin
in thread help installing Devel::NYTProf under Cygwin

> 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?

Replies are listed 'Best First'.
Re^3: help installing Devel::NYTProf under Cygwin
by AnomalousMonk (Archbishop) on Aug 20, 2021 at 17:20 UTC
Re^3: help installing Devel::NYTProf under Cygwin
by kcott (Archbishop) on Aug 21, 2021 at 05:25 UTC
    "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