xref: /rust-libc-0.2.174/libc-test/test/sigrt.rs (revision bd00c8ea)
1 //! Compare libc's SIGRTMAX and SIGRTMIN functions against the actual C macros
2 
3 #[cfg(any(
4     target_os = "linux",
5     target_os = "l4re",
6     target_os = "android",
7     target_os = "emscripten"
8 ))]
9 mod t {
10     use libc;
11 
12     extern "C" {
13         pub fn sigrtmax() -> libc::c_int;
14         pub fn sigrtmin() -> libc::c_int;
15     }
16 
17     #[test]
18     fn test_sigrtmax() {
19         unsafe {
20             assert_eq!(libc::SIGRTMAX(), sigrtmax());
21         }
22     }
23 
24     #[test]
25     fn test_sigrtmin() {
26         unsafe {
27             assert_eq!(libc::SIGRTMIN(), sigrtmin());
28         }
29     }
30 }
31