-
Notifications
You must be signed in to change notification settings - Fork 113
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
Panic message not printed correctly #483
Comments
The |
The panic details are also lost if a plain |
rust-lang/rust#66745 looks potentially relevant. |
Changing the custom panic hook to handle the downcasting in a way that is more similar to the default hook should resolve it. |
Resolved by #485 |
The error currently shows as
To reproduce, add
assert_eq!(1, 2)
to some function under test, e.g.:oak/examples/abitest/tests/src/tests.rs
Lines 55 to 88 in f317c1c
and then run the tests locally with
cargo test
.Note that
panic!("xxx")
seems to show up fine instead, not sure ifassert_eq
is using a different mechanism behind the scenes.I also noticed similar errors a few times when running compiled code on the Oak Runtime, but I don't have reproducibility steps for that yet.
@conradgrobler could you take a look? @daviddrysdale may have some thoughts about it too
The text was updated successfully, but these errors were encountered: