fellow_cache_test: Rename test limits

parent 896d1040
......@@ -2754,8 +2754,8 @@ fellow_busy_region_free(struct fellow_busy *fbo, struct buddy_off_extent *fdr)
}
#ifdef TEST_DRIVER
static uint16_t XXX_LIMIT_LDSEGS = 0;
static unsigned XXX_LIMIT_SEG_BITS = 0;
static uint16_t TEST_LIMIT_LDSEGS = 0;
static unsigned TEST_LIMIT_SEG_BITS = 0;
#endif
static uint16_t
......@@ -2830,8 +2830,8 @@ fellow_busy_body_seglist_alloc(struct fellow_busy *fbo,
#ifdef TEST_DRIVER
if (XXX_LIMIT_LDSEGS > 0)
ldsegs = XXX_LIMIT_LDSEGS;
if (TEST_LIMIT_LDSEGS > 0)
ldsegs = TEST_LIMIT_LDSEGS;
#endif
return (
......@@ -4982,8 +4982,8 @@ fellow_busy_seg_memalloc(struct fellow_busy *fbo,
bits = log2up(fds->seg.size);
#ifdef TEST_DRIVER
if (XXX_LIMIT_SEG_BITS > 0 && bits > XXX_LIMIT_SEG_BITS)
bits = XXX_LIMIT_SEG_BITS;
if (TEST_LIMIT_SEG_BITS > 0 && bits > TEST_LIMIT_SEG_BITS)
bits = TEST_LIMIT_SEG_BITS;
#endif
assert(bits >= MIN_FELLOW_BITS);
assert(bits <= INT8_MAX);
......@@ -7054,8 +7054,8 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc, uint16_t limit_ldsegs, unsig
DBG("concurrent test_iter thread %p", PP(iter_thr->thr));
u = fco->fcsl->fdsl->lsegs + 72 * 2;
XXX_LIMIT_LDSEGS = limit_ldsegs;
XXX_LIMIT_SEG_BITS = limit_seg_bits;
TEST_LIMIT_LDSEGS = limit_ldsegs;
TEST_LIMIT_SEG_BITS = limit_seg_bits;
while (u-- > 0) {
void *p;
sz = 1234;
......@@ -7072,8 +7072,8 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc, uint16_t limit_ldsegs, unsig
if (u & 1)
usleep(100);
}
XXX_LIMIT_LDSEGS = 0;
XXX_LIMIT_SEG_BITS = 0;
TEST_LIMIT_LDSEGS = 0;
TEST_LIMIT_SEG_BITS = 0;
VSHA256_Final(h1, &sha256ctx);
// test trim of a 0-sized busy fcs
AZ(fellow_busy_obj_getspace(fbo, &sz, (uint8_t **)&ptr).status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment