summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-06-09 10:25:51 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-06-09 10:25:51 +0200
commite8514a9ea0b3241fdae7b1f70306632bc85a7004 (patch)
tree3a28a69f07bc7c2639ff687f3bea2a98d3224154 /t
parent242a51a42272a23c60feb9c1b7cd686bfc28e04b (diff)
downloadperl-e8514a9ea0b3241fdae7b1f70306632bc85a7004.tar.gz
Fix regression test for RT 63110 when running with PERL_UNICODE set
This is because block_start already does a copy of the hints in this case.
Diffstat (limited to 't')
-rw-r--r--t/op/eval.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/op/eval.t b/t/op/eval.t
index 2fef2aa084..071b2fa05c 100644
--- a/t/op/eval.t
+++ b/t/op/eval.t
@@ -549,10 +549,11 @@ $test++;
# don't leak memory
{
use feature qw(:5.10);
+ my $count_expected = ($^H & 0x20000) ? 2 : 1;
my $t;
my $s = "a";
$s =~ s/a/$t = \%^H; qq( qq() );/ee;
- print "not " if Internals::SvREFCNT(%$t) != 1;
+ print "not " if Internals::SvREFCNT(%$t) != $count_expected;
print "ok $test - RT 63110\n";
$test++;
}