summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-03-02 15:02:43 +0000
committerNicholas Clark <nick@ccl4.org>2007-03-02 15:02:43 +0000
commitd5e716f5db1b48a63e9e9ea3707ee638103b34a4 (patch)
treed46cdc78fde1f8985c5ced558ca7e526fbd65623 /t
parent9e0d86f862e086b0fde6b64ca39c85508bf50910 (diff)
downloadperl-d5e716f5db1b48a63e9e9ea3707ee638103b34a4.tar.gz
Avoid an assertion failure when overloading readpipe.
p4raw-id: //depot/perl@30444
Diffstat (limited to 't')
-rwxr-xr-xt/op/gv.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/op/gv.t b/t/op/gv.t
index d736138b62..b5f63be11e 100755
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -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