diff options
author | Qi Wang <interwq@gwu.edu> | 2019-04-02 13:02:56 -0700 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-04-02 16:53:00 -0700 |
commit | 6fe11633b066d74bdbb0f037a373af6e12a8b6c2 (patch) | |
tree | 6cf66eaeb07d4478519b61471b026f6780c9ff44 /test | |
parent | 064d6e570e7073096471413f6a5159541478eb01 (diff) |
Fix the binshard unit test.
The test attempts to trigger usage of multiple sharded bins, which percpu_arena
makes it less reliable.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/binshard.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++) { |