]> git.proxmox.com Git - rustc.git/blob - vendor/sysinfo/tests/uptime.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / sysinfo / tests / uptime.rs
1 // Take a look at the license at the top of the repository in the LICENSE file.
2
3 #[test]
4 fn test_uptime() {
5 use sysinfo::SystemExt;
6
7 if sysinfo::System::IS_SUPPORTED {
8 let mut s = sysinfo::System::new();
9 s.refresh_all();
10 assert!(s.uptime() != 0);
11 }
12 }