[perl #21442] only check link() error codes where link() works
authorTony Cook <tony@develop-help.com>
Thu, 3 Apr 2014 03:11:36 +0000 (14:11 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 9 Apr 2014 04:50:28 +0000 (14:50 +1000)
Skip the tests on non-NTFS.

t/win32/fs.t

index 35d3617..b770311 100644 (file)
@@ -8,6 +8,11 @@ BEGIN {
     die $@ if $@ and !is_miniperl();
 }
 
+my $has_link = Win32::FsType() eq 'NTFS';
+
+$has_link
+  or skip_all("link() only works on NTFS");
+
 plan tests => 4;
 
 my $tmpfile1 = tempfile();