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

I tried installing Test2::Harness and a couple tests failed. I am not totally understanding the output and if someone knowledgeable could interpret this for me I'd be grateful.



Running make test for EXODIST/Test2-Harness-1.000170.tar.gz
PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-Iblib/lib" "-Iblib/arch" test.pl

  FAIL    job 46  +~find_in_updir
  PASS    job 46    + Found file in expected spot
  FAIL    job 46    + Found file in expected spot
  DEBUG   job 46    | t/unit/App/Yath/Util.t line 133
(  DIAG  )  job 46    | +---------+----+-----------------------------------------------------------+
(  DIAG  )  job 46    | | GOT     | OP | CHECK                                                     |
(  DIAG  )  job 46    | +---------+----+-----------------------------------------------------------+
(  DIAG  )  job 46    | | <UNDEF> | =~ | (?^:\/cygdrive\/c\/Users\/somia\/AppData\/Local\/Temp\/ya |
(  DIAG  )  job 46    | |         |    | th\-149000\-j3p7oZ\/tmp\/FJbCQG\/17DQP5yPmV\/thefile$)    |
(  DIAG  )  job 46    | +---------+----+-----------------------------------------------------------+
  PLAN    job 46    | Expected assertions: 2
            job 46    ^
(  DIAG  )  job 46    Failed test 'find_in_updir'
(  DIAG  )  job 46    at t/unit/App/Yath/Util.t line 134.

-------------------------------------------------------------------------------------------

  FAIL    job 57  + /cygdrive/c/Users/somia/AppData/Local/Temp has correct permissions
  DEBUG   job 57    t2/tmp_perms.t line 36

The following jobs failed at least once:
+--------------------+-----------+--------------------+--------------------+
| Job ID             | Times Run | Test File          | Succeeded Eventual |
|                    |           |                    | ly?                |
+--------------------+-----------+--------------------+--------------------+
|                    |           |                    |                    |
| 796D54CF-8067-1014 | 2         | t/unit/App/Yath/Ut | NO                 |
| -B37C-A366FD41E411 |           | il.t               |                    |
|                    |           |                    |                    |
| 7973C25C-8067-1014 | 2         | t2/tmp_perms.t     | NO                 |
| -B37C-A366FD41E411 |           |                    |                    |
+--------------------+-----------+--------------------+--------------------+

The following jobs failed:
+---------------------------------+------------------------+---------------+
| Job ID                          | Test File              | Subtests      |
+---------------------------------+------------------------+---------------+
| 796D54CF-8067-1014-B37C-A366FD4 | t/unit/App/Yath/Util.t | find_in_updir |
| 1E411                           |                        |               |
|                                 |                        |               |
| 7973C25C-8067-1014-B37C-A366FD4 | t2/tmp_perms.t         |               |
| 1E411                           |                        |               |
+---------------------------------+------------------------+---------------+

                                    Yath Result Summary
-------------------------------------------------------------------------------------------
     Fail Count: 2
     File Count: 91
Assertion Count: 1996
      Wall Time: 632.81 seconds
       CPU Time: 1960.39 seconds (usr: 3.67s | sys: 1.70s | cusr: 459.45s | csys: 1495.57s)
      CPU Usage: 309%
    -->  Result: FAILED  <--

yath exited with 256 yath exited with 256
not ok 1 - Passed tests when run by yath (allow fork)
not ok 2 - Passed tests when run by yath (no fork)

-------------------------------------------------------------------------------------------
My Perl and System characteristics:

cygwin_nt-10.0-26200 - 3.7.0
AMD Ryzen 5 4600H with Radeon Graphics (AuthenticAMD 3000MHz) x86_64
Perl (/usr/bin/perl:
This is perl 5, version 40, subversion 3 (v5.40.3) built for x86_64-cygwin-threads-multi

Thanks, all.
    – Soren
Apr 15, 2026 at 18:38 UTC

A just machine to make big decisions
Programmed by fellows (and gals) with compassion and vision
We'll be clean when their work is done
We'll be eternally free yes, and eternally young
Donald Fagen —> I.G.Y.
(Slightly modified for inclusiveness)

  • Comment on Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass?

Replies are listed 'Best First'.
Re: Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass?
by tobyink (Canon) on Apr 16, 2026 at 08:33 UTC

    I'm currently running yath (though an older version) on Perl 5.38 and it's fine.

    CPAN Testers shows a mixture of passes and fails on 5.40.x. It seems to support Perl 5.10 onwards, but is maybe a bit flaky on BSD systems. If cross-platform issues crop up moving just from Linux to BSD, then it is not really surprising that moving all the way over to Windows you will also see more of those.

    If the tests mostly pass but there are a few fails, you could try just force-installing it with the caveat that you might have a very slightly buggy installation.

Re: Failed 2 tests on CygPerl for Test2::Harness; would a newer perl pass?
by hippo (Archbishop) on Apr 16, 2026 at 09:31 UTC

    Please don't use <pre> tags for large swathes of output like this. Use <code> tags in preference. Thanks.


    🦛