From 65a54f1fec6b9df64d5870e9203ee14fd0e6c9e4 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 14 Jun 2005 13:40:49 +0000 Subject: 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 --- ext/XS/APItest/t/hash.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/XS/APItest/t/hash.t b/ext/XS/APItest/t/hash.t index 54da2b94be..8e6beeea8e 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'; -- cgit v1.2.1