//! Compare libc's SIGRTMAX and SIGRTMIN functions against the actual C macros extern crate libc; #[cfg(any( target_os = "linux", target_os = "l4re", target_os = "android", target_os = "emscripten" ))] mod t { use libc; extern "C" { pub fn sigrtmax() -> libc::c_int; pub fn sigrtmin() -> libc::c_int; } #[test] fn test_sigrtmax() { unsafe { assert_eq!(libc::SIGRTMAX(), sigrtmax()); } } #[test] fn test_sigrtmin() { unsafe { assert_eq!(libc::SIGRTMIN(), sigrtmin()); } } }