summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-14 13:40:49 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-14 13:40:49 +0000
commit8ca60cef700efb73a84648ac3b19fd3a3eecd992 (patch)
tree2e317fb882011523ad95b860f880e2ec104feb38 /ext
parentee60cd3f634e32b6d1c78afe306663346e195196 (diff)
downloadperl-8ca60cef700efb73a84648ac3b19fd3a3eecd992.tar.gz
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
Diffstat (limited to 'ext')
-rw-r--r--ext/XS/APItest/t/hash.t3
1 files changed, 2 insertions, 1 deletions
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';