diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-10-30 11:34:05 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-10-30 11:34:05 +0000 |
commit | e7d3eb55e8d38c7823883a2830dcecfddd108336 (patch) | |
tree | dc1686d10d6989b610353c16e77ea079eed69115 /t | |
parent | d724f706d60f9fb8d712cd22b9ec95e343d5ee28 (diff) | |
download | perl-e7d3eb55e8d38c7823883a2830dcecfddd108336.tar.gz |
Add a test for bug #60214
p4raw-id: //depot/perl@34661
Diffstat (limited to 't')
-rwxr-xr-x | t/op/filetest.t | 11 |
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'; |