]> git.proxmox.com Git - rustc.git/blob - vendor/rustix/tests/process/uname.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / rustix / tests / process / uname.rs
1 #[test]
2 fn test_uname() {
3 let name: rustix::process::Uname = rustix::process::uname();
4
5 assert!(!name.sysname().to_bytes().is_empty());
6 assert!(!name.nodename().to_bytes().is_empty());
7 assert!(!name.release().to_bytes().is_empty());
8 assert!(!name.version().to_bytes().is_empty());
9 assert!(!name.machine().to_bytes().is_empty());
10
11 #[cfg(any(target_os = "android", target_os = "linux"))]
12 assert!(!name.domainname().to_bytes().is_empty());
13 }