1 //! Compare libc's KERNEL_VERSION macro against a specific kernel version.
2 
3 #[cfg(
4     target_os = "linux",
5 )]
6 mod t {
7     use libc;
8 
9     #[test]
10     fn test_kernel_version() {
11         unsafe {
12             assert_eq!(libc::KERNEL_VERSION(6, 0, 0), 393216);
13         }
14     }
15 }
16