diff options
author | Jason Evans <je@fb.com> | 2014-01-15 01:49:37 (GMT) |
---|---|---|
committer | Jason Evans <je@fb.com> | 2014-01-15 01:49:37 (GMT) |
commit | 35f1bc4e4bd14e07257f6eddbbbcf0c01b52ba5c (patch) | |
tree | a88672cc0aa9800c6a12791a7a2a24f9556d2989 /test/unit/stats.c | |
parent | fb1775e47e91e2e5cef8d4adcb19473309a75f28 (diff) | |
download | jemalloc-35f1bc4e4bd14e07257f6eddbbbcf0c01b52ba5c.zip jemalloc-35f1bc4e4bd14e07257f6eddbbbcf0c01b52ba5c.tar.gz jemalloc-35f1bc4e4bd14e07257f6eddbbbcf0c01b52ba5c.tar.bz2 |
Fix warnings and a test failure exposed on CentOS 6.3.
Diffstat (limited to 'test/unit/stats.c')
-rw-r--r-- | test/unit/stats.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/stats.c b/test/unit/stats.c index 3fa0817..6ebe369 100644 --- a/test/unit/stats.c +++ b/test/unit/stats.c @@ -148,6 +148,9 @@ TEST_BEGIN(test_stats_arenas_small) p = mallocx(SMALL_MAXCLASS, 0); assert_ptr_not_null(p, "Unexpected mallocx() failure"); + assert_d_eq(mallctl("thread.tcache.flush", NULL, NULL, NULL, 0), + config_tcache ? 0 : ENOENT, "Unexpected mallctl() result"); + assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, "Unexpected mallctl() failure"); @@ -164,13 +167,13 @@ TEST_BEGIN(test_stats_arenas_small) if (config_stats) { assert_zu_gt(allocated, 0, - "allocated should be greated than zero"); + "allocated should be greater than zero"); assert_u64_gt(nmalloc, 0, "nmalloc should be no greater than zero"); assert_u64_ge(nmalloc, ndalloc, "nmalloc should be at least as large as ndalloc"); assert_u64_gt(nrequests, 0, - "nrequests should be no greater than zero"); + "nrequests should be greater than zero"); } dallocx(p, 0); |