Revision control

Copy as Markdown

Other Tools

#[cfg(target_os = "linux")]
#[test]
pub fn test_uname_linux() {
assert_eq!(nix::sys::utsname::uname().unwrap().sysname(), "Linux");
}
#[cfg(apple_targets)]
#[test]
pub fn test_uname_darwin() {
assert_eq!(nix::sys::utsname::uname().unwrap().sysname(), "Darwin");
}
#[cfg(target_os = "freebsd")]
#[test]
pub fn test_uname_freebsd() {
assert_eq!(nix::sys::utsname::uname().unwrap().sysname(), "FreeBSD");
}