From 6fe11633b066d74bdbb0f037a373af6e12a8b6c2 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Tue, 2 Apr 2019 13:02:56 -0700 Subject: [PATCH] Fix the binshard unit test. The test attempts to trigger usage of multiple sharded bins, which percpu_arena makes it less reliable. --- test/unit/binshard.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/binshard.c b/test/unit/binshard.c index 406c46ca..d7a8df8f 100644 --- a/test/unit/binshard.c +++ b/test/unit/binshard.c @@ -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++) {