summaryrefslogtreecommitdiff
path: root/ext/XS
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-07-04 19:07:31 +0000
committerNicholas Clark <nick@ccl4.org>2005-07-04 19:07:31 +0000
commit8afd2d2ecb560202b631f95a6aff50e34dd49052 (patch)
treef2d64c21908723486b79bb50094cadf44b03fc62 /ext/XS
parentd75ce6849c410bc036e31e277356c75cd948ff95 (diff)
downloadperl-8afd2d2ecb560202b631f95a6aff50e34dd49052.tar.gz
Make the tests for hv_free_ent and hv_delayfree_ent pass under
-DPURIFY too. p4raw-id: //depot/perl@25078
Diffstat (limited to 'ext/XS')
-rw-r--r--ext/XS/APItest/APItest.xs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/XS/APItest/APItest.xs b/ext/XS/APItest/APItest.xs
index 82479bbf89..7905a93574 100644
--- a/ext/XS/APItest/APItest.xs
+++ b/ext/XS/APItest/APItest.xs
@@ -20,6 +20,9 @@ test_freeent(freeent_function *f) {
U32 results[4];
int i;
+#ifdef PURIFY
+ victim = (HE*)safemalloc(sizeof(HE));
+#else
/* Storing then deleting something should ensure that a hash entry is
available. */
hv_store(test_hash, "", 0, &PL_sv_yes, 0);
@@ -29,9 +32,9 @@ test_freeent(freeent_function *f) {
test expect to be able to call del_HE on the HE */
if (!PL_he_root)
croak("PL_he_root is 0");
-
victim = PL_he_root;
PL_he_root = HeNEXT(victim);
+#endif
victim->hent_hek = Perl_share_hek(aTHX_ "", 0, 0);