mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: test: print informative error when kernel data changes
When the message coming in from the client to a server changes, print an informative message rather than just "left != right". Signed-off-by: Sean <xobs@ci.betrusted.io>
This commit is contained in:
parent
77426aaf56
commit
2dc0545eaa
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ fn send_move_message() {
|
|||
if let xous_kernel::Message::Move(m) = message {
|
||||
let buf = m.buf;
|
||||
let bt = unsafe { core::slice::from_raw_parts_mut(buf.as_mut_ptr(), buf.len()) };
|
||||
assert_eq!(*test_bytes, *bt);
|
||||
assert_eq!(*test_bytes, *bt, "message was changed by the kernel");
|
||||
// let s = String::from_utf8_lossy(&bt);
|
||||
// println!("SERVER: Got message: {:?} -> \"{}\"", bt, s);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue