2018-06-24 22:44:08 +00:00
|
|
|
#[cfg(prefixed)]
|
|
|
|
#[test]
|
|
|
|
fn malloc_is_prefixed() {
|
2020-07-21 11:33:59 +00:00
|
|
|
assert_ne!(tikv_jemalloc_sys::malloc as usize, libc::malloc as usize)
|
2018-06-24 22:44:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(not(prefixed))]
|
|
|
|
#[test]
|
|
|
|
fn malloc_is_overridden() {
|
2020-07-21 11:33:59 +00:00
|
|
|
assert_eq!(tikv_jemalloc_sys::malloc as usize, libc::malloc as usize)
|
2018-06-24 22:44:08 +00:00
|
|
|
}
|