mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add an extra test for checking if time server blocks on PDDB mount
gated with a feature so it doesn't bloat the shipping code base
This commit is contained in:
parent
797bb0adc6
commit
8e440609c2
1 changed files with 15 additions and 0 deletions
|
|
@ -629,6 +629,21 @@ impl<'a> ShellCmdApi<'a> for Test {
|
||||||
write!(ret, "Ship mode request denied").unwrap();
|
write!(ret, "Ship mode request denied").unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[cfg(feature-"extra-tests")]
|
||||||
|
"timeblock" => {
|
||||||
|
let time_cid = xous::connect(xous::SID::from_bytes(b"timeserverpublic").unwrap()).unwrap();
|
||||||
|
let result = xous::send_message(time_cid,
|
||||||
|
xous::Message::new_blocking_scalar(3, 0, 0, 0, 0)
|
||||||
|
).unwrap();
|
||||||
|
match result {
|
||||||
|
xous::Result::Scalar2(msb, lsb) => {
|
||||||
|
log::info!("GetTimeUtc: {}, {}", msb, lsb);
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
log::info!("GetTimeUtc returned an unexpected result");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#[cfg(feature="ditherpunk")]
|
#[cfg(feature="ditherpunk")]
|
||||||
"modals" => {
|
"modals" => {
|
||||||
modals::tests::spawn_test();
|
modals::tests::spawn_test();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue