On Thu, Jun 12, 2025 at 10:47 AM Burak Emir <b...@google.com> wrote:
>
> True, I observed the panic but the test is erroneously marked as failing.
> I have commented it out and added TODO to enable it once
> [should_panic] is supported.

No, please do not use `unwrap()`.

Instead, tests are supposed to be written as you would normally write
kernel code as much as possible, i.e. fallible.

We also have now support for tests that return `-> Result`, so you can
e.g. use the `?` operator.

Thanks!

Cheers,
Miguel

Reply via email to