From 4a15008cfbf414136f40a57fb1ceac80b22ea09f Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Wed, 2 Dec 2020 15:54:29 -0800 Subject: [PATCH] HPA unit test: skip if unsupported. Previously, we replicated the logic in hpa_supported in the test as well. --- test/unit/hpa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/hpa.c b/test/unit/hpa.c index 72a20c32..94efd4ae 100644 --- a/test/unit/hpa.c +++ b/test/unit/hpa.c @@ -52,7 +52,7 @@ destroy_test_data(hpa_shard_t *shard) { } TEST_BEGIN(test_alloc_max) { - test_skip_if(LG_SIZEOF_PTR != 3); + test_skip_if(!hpa_supported()); hpa_shard_t *shard = create_test_data(); tsdn_t *tsdn = tsd_tsdn(tsd_fetch()); @@ -128,7 +128,7 @@ node_remove(mem_tree_t *tree, edata_t *edata) { } TEST_BEGIN(test_stress) { - test_skip_if(LG_SIZEOF_PTR != 3); + test_skip_if(!hpa_supported()); hpa_shard_t *shard = create_test_data();