Skip to content

Commit

Permalink
Skip t/io/eintr.t on older Darwins.
Browse files Browse the repository at this point in the history
Identify the OS version by capturing the first two parts of the M.m.p version
number.

For RT #116262
  • Loading branch information
jkeenan committed Jan 19, 2013
1 parent 5b05192 commit f24e984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/io/eintr.t
Expand Up @@ -49,9 +49,11 @@ if (exists $ENV{PERLIO} && $ENV{PERLIO} =~ /stdio/ ) {
# Also skip on release builds, to avoid other possibly problematic
# platforms

my ($osmajmin) = $Config{osvers} =~ /^(\d+\.\d+)/;
if ($^O eq 'VMS' || $^O eq 'MSWin32' || $^O eq 'cygwin' || $^O =~ /freebsd/ ||
($^O eq 'solaris' && $Config{osvers} eq '2.8')
|| ((int($]*1000) & 1) == 0)
($^O eq 'solaris' && $Config{osvers} eq '2.8') ||
($^O eq 'darwin' && $osmajmin < 9) ||
((int($]*1000) & 1) == 0)
) {
skip_all('various portability issues');
exit 0;
Expand Down

0 comments on commit f24e984

Please sign in to comment.