File: unprefixed_malloc.rs

package info (click to toggle)
rust-tikv-jemalloc-sys 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208 kB
  • sloc: ansic: 6; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#[cfg(prefixed)]
#[test]
fn malloc_is_prefixed() {
    assert_ne!(tikv_jemalloc_sys::malloc as usize, libc::malloc as usize)
}

#[cfg(not(prefixed))]
#[test]
fn malloc_is_overridden() {
    assert_eq!(tikv_jemalloc_sys::malloc as usize, libc::malloc as usize)
}