Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hil-tests might stall at assert_eq! etc. #2908

Open
bjoernQ opened this issue Jan 8, 2025 · 1 comment
Open

hil-tests might stall at assert_eq! etc. #2908

bjoernQ opened this issue Jan 8, 2025 · 1 comment

Comments

@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 8, 2025

Repro:

Force a test to fail on assert_eq! - e.g.

@@ -46,6 +46,7 @@ mod tests {
         block_buf[..plaintext.len()].copy_from_slice(plaintext);

         let mut block = block_buf.clone();
+        block[0] = 0;
         ctx.aes.process(&mut block, Mode::Encryption128, keybuf);
         assert_eq!(block, encrypted_message);
     }

And run it - e.g. cargo xtask run-tests esp32c6 -t aes - execution will stall after printing the error

using defmt::assert_eq! either directly or by adding a use defmt::*; before use super::*; makes it work as expected

@bugadani
Copy link
Contributor

bugadani commented Jan 8, 2025

Yeah for some reason assert_eq doesn't work with big(ish?) arrays very well. I'm not sure if this is a probe-rs issue (i.e. the test ends up timing out, or something like that), we already have issues with semihosting-printing out messages getting cut off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants