From: Nicholas Clark Date: Tue, 14 Jun 2005 13:40:49 +0000 (+0000) Subject: Test was coredumping with a shared perl library. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ca60cef700efb73a84648ac3b19fd3a3eecd992;p=p5sagit%2Fp5-mst-13.2.git Test was coredumping with a shared perl library. This is wrong. It seems that what gets peephole optimised (in this case named method calls into shared string scalars) depends on whether there is a shared perl library. Anyway, fix the symptom - the coredump. p4raw-id: //depot/perl@24841 --- diff --git a/ext/XS/APItest/t/hash.t b/ext/XS/APItest/t/hash.t index 54da2b9..8e6beee 100644 --- a/ext/XS/APItest/t/hash.t +++ b/ext/XS/APItest/t/hash.t @@ -58,8 +58,9 @@ main_tests (\@keys, \@testkeys, ' [utf8 hash]'); { my $strtab = strtab(); is (ref $strtab, 'HASH', "The shared string table quacks like a hash"); + my $wibble = "\0"; eval { - $strtab->{wibble}++; + $strtab->{$wibble}++; }; my $prefix = "Cannot modify shared string table in hv_"; my $what = $prefix . 'fetch';