summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-10-30 11:34:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-10-30 11:34:05 +0000
commite7d3eb55e8d38c7823883a2830dcecfddd108336 (patch)
treedc1686d10d6989b610353c16e77ea079eed69115 /t
parentd724f706d60f9fb8d712cd22b9ec95e343d5ee28 (diff)
downloadperl-e7d3eb55e8d38c7823883a2830dcecfddd108336.tar.gz
Add a test for bug #60214
p4raw-id: //depot/perl@34661
Diffstat (limited to 't')
-rwxr-xr-xt/op/filetest.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/filetest.t b/t/op/filetest.t
index 231242be86..97ce3f9bf6 100755
--- a/t/op/filetest.t
+++ b/t/op/filetest.t
@@ -10,7 +10,7 @@ BEGIN {
}
use Config;
-plan(tests => 24);
+plan(tests => 28);
ok( -d 'op' );
ok( -f 'TEST' );
@@ -79,6 +79,15 @@ ok( -x -d -x 'op' );
ok( (-s -f 'TEST' > 1), "-s returns real size" );
ok( -f -s 'TEST' == 1 );
+# now with an empty file
+open my $fh, ">", "foo";
+close $fh;
+ok( -f "foo" );
+is( -s "foo", 0 );
+is( -f -s "foo", 0 );
+is( -s -f "foo", 0 );
+unlink "foo";
+
# test that _ is a bareword after filetest operators
-f 'TEST';