Home
last modified time | relevance | path

Searched refs:assert_d_eq (Results 1 – 18 of 18) sorted by relevance

/redis-3.2.3/deps/jemalloc/test/unit/
H A Dstats.c10 assert_d_eq(mallctl("stats.cactive", &cactive, &sz, NULL, 0), expected, in TEST_BEGIN()
14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN()
16 assert_d_eq(mallctl("stats.active", &active, &sz, NULL, 0), expected, in TEST_BEGIN()
18 assert_d_eq(mallctl("stats.resident", &resident, &sz, NULL, 0), in TEST_BEGIN()
20 assert_d_eq(mallctl("stats.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN()
48 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
96 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
99 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
159 assert_d_eq(mallctl("thread.tcache.flush", NULL, NULL, NULL, 0), in TEST_BEGIN()
291 assert_d_eq(mallctl("thread.tcache.flush", NULL, NULL, NULL, 0), in TEST_BEGIN()
[all …]
H A Dmallctl.c8 assert_d_eq(mallctl("no_such_name", NULL, NULL, NULL, 0), ENOENT, in TEST_BEGIN()
21 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
24 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
48 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN()
51 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN()
56 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN()
59 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, &epoch, in TEST_BEGIN()
62 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, &epoch, in TEST_BEGIN()
81 assert_d_eq(mallctl("epoch", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
96 assert_d_eq(mallctl("epoch", &old_epoch, &sz, &new_epoch, in TEST_BEGIN()
[all …]
H A Dprof_reset.c23 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in set_prof_active()
33 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, NULL, 0), 0, in get_lg_prof_sample()
41 assert_d_eq(mallctl("prof.reset", NULL, NULL, in do_prof_reset()
57 assert_d_eq(mallctl("opt.lg_prof_sample", &lg_prof_sample_orig, &sz, in TEST_BEGIN()
69 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
124 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
129 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
131 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
161 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), in thd_start()
167 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
H A Dprof_thread_name.c15 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, NULL, 0), in mallctl_thread_name_get_impl()
29 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in mallctl_thread_name_set_impl()
49 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in TEST_BEGIN()
56 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in TEST_BEGIN()
67 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, in TEST_BEGIN()
92 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in thd_start()
H A Dprof_gdump.c31 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
48 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN()
59 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN()
H A Dsize_classes.c11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in get_max_size_class()
15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in get_max_size_class()
20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in get_max_size_class()
H A Dutil.c41 assert_d_eq(err, 0, "Unexpected failure"); in TEST_BEGIN()
123 assert_d_eq(err, test->expected_errno, in TEST_BEGIN()
146 assert_d_eq(strncmp(buf, expected_str_untruncated, len-1), 0, \ in TEST_BEGIN()
149 assert_d_eq(result, strlen(expected_str_untruncated), \ in TEST_BEGIN()
179 assert_d_eq(result, strlen(expected_str), "Unexpected result"); \ in TEST_BEGIN()
H A Dprof_accum.c44 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
71 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
H A Dprof_active.c15 assert_d_eq(mallctl(name, &old, &sz, NULL, 0), 0, in mallctl_bool_get()
29 assert_d_eq(mallctl(name, &old, &sz, &val_new, sizeof(val_new)), 0, in mallctl_bool_set()
H A Dprof_idump.c32 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
/redis-3.2.3/deps/jemalloc/test/integration/
H A Dthread_tcache_enabled.c30 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), in thd_start()
36 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
41 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
46 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
51 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
57 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
63 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
69 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
75 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
H A Dchunk.c138 assert_d_eq(mallctl("arena.0.chunk_hooks", &old_hooks, &old_size, in TEST_BEGIN()
154 assert_d_eq(mallctl("arenas.lrun.0.size", &large0, &sz, NULL, 0), 0, in TEST_BEGIN()
156 assert_d_eq(mallctl("arenas.lrun.1.size", &large1, &sz, NULL, 0), 0, in TEST_BEGIN()
160 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN()
162 assert_d_eq(mallctl("arenas.hchunk.1.size", &huge1, &sz, NULL, 0), 0, in TEST_BEGIN()
177 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
198 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
230 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
235 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
250 assert_d_eq(mallctl("arena.0.chunk_hooks", NULL, NULL, &old_hooks, in TEST_BEGIN()
[all …]
H A Doverflow.c11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in TEST_BEGIN()
15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in TEST_BEGIN()
20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in TEST_BEGIN()
H A DMALLOCX_ARENA.c22 assert_d_eq(mallctl("arenas.extend", &arena_ind, &sz, NULL, 0), 0, in thd_start()
33 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start()
36 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
H A Dmallocx.c10 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
H A Dxallocx.c58 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
94 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
98 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
H A Dposix_memalign.c14 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
/redis-3.2.3/deps/jemalloc/test/include/test/
H A Dtest.h43 #define assert_d_eq(a, b, ...) assert_cmp(int, a, b, ==, !=, "d", __VA_ARGS__) macro