Skip to content

Commit 6fe1163

Browse files
committed
Fix the binshard unit test.
The test attempts to trigger usage of multiple sharded bins, which percpu_arena makes it less reliable.
1 parent 064d6e5 commit 6fe1163

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/binshard.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ thd_start(void *varg) {
8282
}
8383

8484
TEST_BEGIN(test_bin_shard_mt) {
85+
test_skip_if(have_percpu_arena &&
86+
PERCPU_ARENA_ENABLED(opt_percpu_arena));
87+
8588
thd_t thds[NTHREADS];
8689
unsigned i;
8790
for (i = 0; i < NTHREADS; i++) {

0 commit comments

Comments
 (0)