Sign in
android
/
toolchain
/
rustc
/
c396013a05f0623e5cbcfc712426adb8e384ed83
/
.
/
vendor
/
sysinfo
/
tests
/
uptime.rs
blob: d5eae7323a84f6852b5d86bec0ed1839a2a75163 [
file
] [
log
] [
blame
]
// Take a look at the license at the top of the repository in the LICENSE file.
#[
test
]
fn
test_uptime
()
{
use
sysinfo
::
SystemExt
;
if
sysinfo
::
System
::
IS_SUPPORTED
{
let
mut
s
=
sysinfo
::
System
::
new
();
s
.
refresh_all
();
assert
!(
s
.
uptime
()
!=
0
);
}
}