ext/POSIX/t/sysconf.t: Skip testing pathconf with _PC_LINK_MAX on android
authorBrian Fraser <fraserbn@gmail.com>
Fri, 26 Apr 2013 07:16:19 +0000 (04:16 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Sun, 26 Jan 2014 17:44:24 +0000 (14:44 -0300)
ext/POSIX/t/sysconf.t

index ad1e482..f23e0d3 100644 (file)
@@ -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: {