summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-04-24 19:01:04 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 16:19:04 -0300
commitbad5a428739969dda658b4f5768c98582da578f7 (patch)
treeb1285aadf9264ffdf6f7811790d832f622b13ccd /t/lib
parentb2818f92b8cc4751b2ad6be60cd7fcb962cae6e4 (diff)
downloadperl-bad5a428739969dda658b4f5768c98582da578f7.tar.gz
t/lib/warnings/pp_sys: Add skips in case telldir is not available
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/warnings/pp_sys22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/lib/warnings/pp_sys b/t/lib/warnings/pp_sys
index 2e81916804..0891a393be 100644
--- a/t/lib/warnings/pp_sys
+++ b/t/lib/warnings/pp_sys
@@ -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';