Subject: | Test-suite failure on OS X |
Date: | Tue, 12 May 2015 02:25:08 -0400 |
To: | bug-Test-Command-Simple [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
Running 'make test' on Test-Command-Simple 0.04 fails on OS X.
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....... 1/1 Bailout called. Further testing stopped: No support for OS
I think it's just a regex/logic problem in the test suite:
BAIL_OUT("No support for OS")
if $^O =~ /win/i && $^O !~ /cygwin/i;
The $^O platform name for OS X is "darwin", which matches /win/ and doesn't match /cygwin/. I have no idea what the possible windows $^O values are to know what the "right way" to catch them is. Maybe just /^win/ (then no need for /cygwin/ exception to it)? Or for simplicity, just also code an exception for /darwin/?
dan
--
Daniel Macks
dmacks@netspace.org