diff options
author | Qi Wang <interwq@gwu.edu> | 2017-11-28 20:21:58 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-11-29 05:52:49 (GMT) |
commit | 6e841f618a5ff99001a9578e9ff73602e7a94620 (patch) | |
tree | 3fccd527d356ec8967f95e84ad78b8b275f9900b /test/include | |
parent | 26a8f82c484eada4188e56daad32ed6a16b4b585 (diff) | |
download | jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.zip jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.tar.gz jemalloc-6e841f618a5ff99001a9578e9ff73602e7a94620.tar.bz2 |
Add more tests for extent hooks failure paths.
Diffstat (limited to 'test/include')
-rw-r--r-- | test/include/test/extent_hooks.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/include/test/extent_hooks.h b/test/include/test/extent_hooks.h index ea01285..1f06201 100644 --- a/test/include/test/extent_hooks.h +++ b/test/include/test/extent_hooks.h @@ -266,6 +266,8 @@ extent_merge_hook(extent_hooks_t *extent_hooks, void *addr_a, size_t size_a, "extent_hooks should be same as pointer used to set hooks"); assert_ptr_eq(extent_hooks->merge, extent_merge_hook, "Wrong hook function"); + assert_ptr_eq((void *)((uintptr_t)addr_a + size_a), addr_b, + "Extents not mergeable"); called_merge = true; if (!try_merge) { return true; |