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