This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b468f5
)
Test for change #11639.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 12 Aug 2001 13:45:58 +0000
(13:45 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sun, 12 Aug 2001 13:45:58 +0000
(13:45 +0000)
p4raw-link: @11639 on //depot/perl:
5b468f54a26b6cc5b994509b89b4ae0df54ab101
p4raw-id: //depot/perl@11640
t/op/tiehandle.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/tiehandle.t
b/t/op/tiehandle.t
index
cb9a290
..
7ae3351
100755
(executable)
--- a/
t/op/tiehandle.t
+++ b/
t/op/tiehandle.t
@@
-77,7
+77,7
@@
package main;
use Symbol;
-print "1..3
5
\n";
+print "1..3
8
\n";
my $fh = gensym;
@@
-189,3
+189,31
@@
ok($r == 1);
untie *STDIN;
}
+
+{
+ # test for change 11639: Can't localize *FH, then tie it
+ {
+ local *foo;
+ tie %foo, 'Blah';
+ }
+ ok(!tied %foo);
+
+ {
+ local *bar;
+ tie @bar, 'Blah';
+ }
+ ok(!tied @bar);
+
+ {
+ local *BAZ;
+ tie *BAZ, 'Blah';
+ }
+ ok(!tied *BAZ);
+
+ package Blah;
+
+ sub TIEHANDLE {bless {}}
+ sub TIEHASH {bless {}}
+ sub TIEARRAY {bless {}}
+}
+