Fix the binshard unit test.

The test attempts to trigger usage of multiple sharded bins, which percpu_arena
makes it less reliable.
This commit is contained in:
Qi Wang 2019-04-02 13:02:56 -07:00 committed by Qi Wang
parent 064d6e570e
commit 6fe11633b0

View File

@ -82,6 +82,9 @@ thd_start(void *varg) {
}
TEST_BEGIN(test_bin_shard_mt) {
test_skip_if(have_percpu_arena &&
PERCPU_ARENA_ENABLED(opt_percpu_arena));
thd_t thds[NTHREADS];
unsigned i;
for (i = 0; i < NTHREADS; i++) {