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