summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorchromatic <chromatic@wgz.org>2001-09-22 15:27:56 -0600
committerAbhijit Menon-Sen <ams@wiw.org>2001-09-23 06:56:32 +0000
commit39b99f2105ed8866b81c468bff75857b0c5187f9 (patch)
tree4567559284e93cb5e5391db7463f3ecf154378c6 /t
parent39e79f6b7da6190c441d02fdb038af6bdc815b1e (diff)
downloadperl-39b99f2105ed8866b81c468bff75857b0c5187f9.tar.gz
Re:
Forgotten deprecation of *glob{FILEHANDLE}? Message-Id: <20010923033252.33085.qmail@onion.perl.org> p4raw-id: //depot/perl@12153
Diffstat (limited to 't')
-rwxr-xr-xt/op/gv.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index 431910b298..a423cb49ed 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -104,7 +104,16 @@ print ref *x{FORMAT} eq "FORMAT" ? "ok 21\n" : "not ok 21\n";
*x = *STDOUT;
print *{*x{GLOB}} eq "*main::STDOUT" ? "ok 22\n" : "not ok 22\n";
print {*x{IO}} "ok 23\n";
-print {*x{FILEHANDLE}} "ok 24\n";
+
+{
+ my $warn;
+ local $SIG{__WARN__} = sub {
+ $warn .= $_[0];
+ };
+ my $val = *x{FILEHANDLE};
+ print {*x{IO}} ($warn =~ /is deprecated/ ? "ok 24\n" : "not ok 24\n");
+
+}
# test if defined() doesn't create any new symbols