Files
third_party_rust_libc/libc-test/test/linux_kernel_version.rs
2022-12-21 12:46:21 +00:00

18 lines
295 B
Rust

//! 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);
}
}
}