HPA unit test: skip if unsupported.

Previously, we replicated the logic in hpa_supported in the test as well.
This commit is contained in:
David Goldblatt 2020-12-02 15:54:29 -08:00 committed by David Goldblatt
parent 43af63fff4
commit 4a15008cfb

View File

@ -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();