summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-05-27 11:02:21 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-05-27 11:02:21 +0000
commit6751fbc4613da48d58726f127239e6f792ac8c57 (patch)
tree2a03d5ba5446e8cfd1109002db71b940cb2859ce /t
parent3977871ddaef13bab4556a4c080d3871df7b231f (diff)
downloadperl-6751fbc4613da48d58726f127239e6f792ac8c57.tar.gz
Add IO::Scalar fail case to the tests.
p4raw-id: //depot/perlio@16809
Diffstat (limited to 't')
-rwxr-xr-xt/op/tie.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/tie.t b/t/op/tie.t
index 309656da86..d147f6b117 100755
--- a/t/op/tie.t
+++ b/t/op/tie.t
@@ -135,7 +135,7 @@ untie %h;
EXPECT
########
-# strict error behaviour, with 2 extra references
+# strict error behaviour, with 2 extra references
use warnings 'untie';
use Tie::Hash ;
$a = tie %h, Tie::StdHash;
@@ -184,13 +184,17 @@ EXPECT
# Allowed glob self-ties
my $destroyed = 0;
+my $printed = 0;
sub Self2::TIEHANDLE { bless $_[1], $_[0] }
sub Self2::DESTROY { $destroyed = 1; }
+sub Self2::PRINT { $printed = 1; }
{
use Symbol;
my $c = gensym;
tie *$c, 'Self2', $c;
+ print $c 'Hello';
}
+die "self-tied glob not PRINTed" unless $printed == 1;
die "self-tied glob not DESTROYd" unless $destroyed == 1;
EXPECT
########