summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/arena_reset.c2
-rw-r--r--test/unit/slab.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/arena_reset.c b/test/unit/arena_reset.c
index d2a9bb4..24c7f52 100644
--- a/test/unit/arena_reset.c
+++ b/test/unit/arena_reset.c
@@ -63,7 +63,7 @@ vsalloc(tsdn_t *tsdn, const void *ptr) {
if (extent == NULL) {
return 0;
}
- if (!extent_active_get(extent)) {
+ if (extent_state_get(extent) != extent_state_active) {
return 0;
}
diff --git a/test/unit/slab.c b/test/unit/slab.c
index d3b45e8..1f2a260 100644
--- a/test/unit/slab.c
+++ b/test/unit/slab.c
@@ -8,8 +8,8 @@ TEST_BEGIN(test_arena_slab_regind) {
extent_t slab;
const arena_bin_info_t *bin_info = &arena_bin_info[binind];
extent_init(&slab, NULL, mallocx(bin_info->slab_size,
- MALLOCX_LG_ALIGN(LG_PAGE)), bin_info->slab_size, 0, 0, true,
- false, true, true);
+ MALLOCX_LG_ALIGN(LG_PAGE)), bin_info->slab_size, 0, 0,
+ extent_state_active, false, true, true);
assert_ptr_not_null(extent_addr_get(&slab),
"Unexpected malloc() failure");
for (regind = 0; regind < bin_info->nregs; regind++) {