Skip to content

Instantly share code, notes, and snippets.

@eam
Created June 22, 2012 22:35
Show Gist options
  • Save eam/2975575 to your computer and use it in GitHub Desktop.
Save eam/2975575 to your computer and use it in GitHub Desktop.
diff --git a/dist/IO/t/io_xs.t b/dist/IO/t/io_xs.t
index 968b3f5..9478f00 100644
--- a/dist/IO/t/io_xs.t
+++ b/dist/IO/t/io_xs.t
@@ -43,7 +43,7 @@ SKIP:
{
$^O eq "MSWin32"
and skip "directory sync doesn't apply to MSWin32", 1;
- open my $dh, "<", "."
- or skip "Cannot open the cwd", 1;
- ok($dh->sync, "sync to a read only directory handle");
+ open my $fh, "<", "io_xs.t"
+ or skip "Cannot open io_xs.t read-only", 1;
+ ok($fh->sync, "sync to a read only handle");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment