t/lib/warnings/pp_sys: Add skips in case telldir is not available
authorBrian Fraser <fraserbn@gmail.com>
Wed, 24 Apr 2013 22:01:04 +0000 (19:01 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 22 Jan 2014 19:19:04 +0000 (16:19 -0300)
t/lib/warnings/pp_sys

index 2e81916..0891a39 100644 (file)
@@ -806,6 +806,17 @@ Opening filehandle FOO also as a directory at - line 9.
 Opening filehandle $foo also as a directory at - line 10.
 ########
 # pp_sys.c [pp_*dir]
+use Config ;
+BEGIN {
+    if ( ! $Config{d_telldir}) {
+        print <<EOM ;
+SKIPPED
+# telldir not present
+EOM
+        exit
+    }
+}
+#line 2
 use warnings 'io';
 opendir FOO, ".";
 opendir $foo, ".";
@@ -838,6 +849,17 @@ closedir() attempted on invalid dirhandle $foo at - line 18.
 ########
 
 # pp_sys.c [pp_*dir]
+use Config ;
+BEGIN {
+    if ( ! $Config{d_telldir}) {
+        print <<EOM ;
+SKIPPED
+# telldir not present
+EOM
+        exit
+    }
+}
+#line 3
 use utf8;
 use open qw( :utf8 :std );
 use warnings 'io';