summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-12-11 22:04:07 (GMT)
committerQi Wang <interwq@gmail.com>2017-12-18 20:47:46 (GMT)
commitf70785de91ee14e8034f9bd64bf6590199c89e65 (patch)
tree86c794636dbf5daffe76c31b36e7e34bcd02b151 /test/unit
parent5e0332890f8e553e148b8c4b0130d84037339e6a (diff)
downloadjemalloc-f70785de91ee14e8034f9bd64bf6590199c89e65.zip
jemalloc-f70785de91ee14e8034f9bd64bf6590199c89e65.tar.gz
jemalloc-f70785de91ee14e8034f9bd64bf6590199c89e65.tar.bz2
Skip test/unit/pack when profiling is enabled.
The test assumes no sampled allocations.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/pack.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/pack.c b/test/unit/pack.c
index edfc548..fc188b0 100644
--- a/test/unit/pack.c
+++ b/test/unit/pack.c
@@ -88,6 +88,12 @@ arena_reset_mallctl(unsigned arena_ind) {
}
TEST_BEGIN(test_pack) {
+ bool prof_enabled;
+ size_t sz = sizeof(prof_enabled);
+ if (mallctl("opt.prof", (void *)&prof_enabled, &sz, NULL, 0) == 0) {
+ test_skip_if(prof_enabled);
+ }
+
unsigned arena_ind = arenas_create_mallctl();
size_t nregs_per_run = nregs_per_run_compute();
size_t nregs = nregs_per_run * NSLABS;