summaryrefslogtreecommitdiff
path: root/t/io/open.t
diff options
context:
space:
mode:
Diffstat (limited to 't/io/open.t')
-rwxr-xr-xt/io/open.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/io/open.t b/t/io/open.t
index 50ae38dff1..63079c8b77 100755
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -8,9 +8,10 @@ print "1..9\n";
# my $file tests
-unlink("afile.new") if -f "afile";
+unlink("afile") if -f "afile";
print "$!\nnot " unless open(my $f,"+>afile");
print "ok 1\n";
+binmode $f;
print "not " unless -f "afile";
print "ok 2\n";
print "not " unless print $f "SomeData\n";