diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-03-02 15:02:43 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-03-02 15:02:43 +0000 |
commit | d5e716f5db1b48a63e9e9ea3707ee638103b34a4 (patch) | |
tree | d46cdc78fde1f8985c5ced558ca7e526fbd65623 /t | |
parent | 9e0d86f862e086b0fde6b64ca39c85508bf50910 (diff) | |
download | perl-d5e716f5db1b48a63e9e9ea3707ee638103b34a4.tar.gz |
Avoid an assertion failure when overloading readpipe.
p4raw-id: //depot/perl@30444
Diffstat (limited to 't')
-rwxr-xr-x | t/op/gv.t | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -12,7 +12,7 @@ BEGIN { use warnings; require './test.pl'; -plan( tests => 159 ); +plan( tests => 160 ); # type coersion on assignment $foo = 'foo'; @@ -480,6 +480,10 @@ foreach my $value ([1,2,3], {1=>2}, *STDOUT{IO}, \&ok, *STDOUT{FORMAT}) { $CORE::GLOBAL::{"readline"}=[]; eval "no warnings; <STDOUT>"; is($@, '', "Can't trip up readline overloading"); + + $CORE::GLOBAL::{"readpipe"}=[]; + eval "`` if 0"; + is($@, '', "Can't trip up readpipe overloading"); } __END__ Perl |