From cf348b6035afd609cd9c7dd5c312a0ade3829a8b Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Fri, 26 Apr 2013 04:16:19 -0300 Subject: [PATCH] ext/POSIX/t/sysconf.t: Skip testing pathconf with _PC_LINK_MAX on android --- ext/POSIX/t/sysconf.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ext/POSIX/t/sysconf.t b/ext/POSIX/t/sysconf.t index ad1e482..f23e0d3 100644 --- a/ext/POSIX/t/sysconf.t +++ b/ext/POSIX/t/sysconf.t @@ -86,8 +86,11 @@ SKIP: { 2 * @path_consts; for my $constant (@path_consts) { - _check_and_report(sub { fpathconf($fd, shift) }, $constant, + SKIP: { + skip "pathconf($constant) hangs on Android", 2 if $constant eq '_PC_LINK_MAX' && $^O =~ /android/; + _check_and_report(sub { fpathconf($fd, shift) }, $constant, "calling fpathconf($fd, $constant)"); + } } POSIX::close($fd); @@ -95,8 +98,11 @@ SKIP: { # testing pathconf() on a non-terminal file for my $constant (@path_consts) { + SKIP: { + skip "pathconf($constant) hangs on Android", 2 if $constant eq '_PC_LINK_MAX' && $^O =~ /android/; _check_and_report(sub { pathconf($testdir, shift) }, $constant, "calling pathconf('$testdir', $constant)"); + } } SKIP: { -- 2.7.4