summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-09-10 22:03:32 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-09-10 22:26:20 -0700
commit64617da904e8a7261939c304fbaf86e93fe72158 (patch)
tree65ca219b805788ad350d6c8dec0dd9b9ee9d2d67 /t/op
parent49498cafba9ef826af2f85193bb77c26f9efbe77 (diff)
downloadperl-64617da904e8a7261939c304fbaf86e93fe72158.tar.gz
Make utime handle get-magic correctly for glob(ref)s
It used to ignore get-magic for globs and globrefs.
Diffstat (limited to 't/op')
-rw-r--r--t/op/tie_fetch_count.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/tie_fetch_count.t b/t/op/tie_fetch_count.t
index b69ee9f98d..3a9ab65a57 100644
--- a/t/op/tie_fetch_count.t
+++ b/t/op/tie_fetch_count.t
@@ -7,7 +7,7 @@ BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
- plan (tests => 278);
+ plan (tests => 280);
}
use strict;
@@ -214,6 +214,10 @@ $var8 = *dummy; $dummy = $var8; $count = 0;
eval { chown 0,0,$var8 }; check_count 'chown 0,0,$tied_glob';
$var8 = *dummy; $dummy = $var8; $count = 0;
eval { chown 0,0,\$var8}; check_count 'chown 0,0,\$tied_glob';
+$var8 = *dummy; $dummy = $var8; $count = 0;
+eval { utime 0,0,$var8 }; check_count 'utime 0,0,$tied_glob';
+$var8 = *dummy; $dummy = $var8; $count = 0;
+eval { utime 0,0,\$var8}; check_count 'utime 0,0,\$tied_glob';
###############################################