Skip to content

added expectations to #[should_panic] tests - #521

Merged
alejandro-vaz merged 3 commits into
servo:v2from
prakrititz:v2
Aug 31, 2026
Merged

added expectations to #[should_panic] tests#521
alejandro-vaz merged 3 commits into
servo:v2from
prakrititz:v2

Conversation

@prakrititz

@prakrititz prakrititz commented Aug 31, 2026

Copy link
Copy Markdown

Closes #502

Apologies, I missed linking the issue when I first opened this.

Several tests in tests/main.rs and tests/bytes.rs used should_panic without an expected string. This PR adds deterministic expected substrings to all bare should_panic attributes.

@alejandro-vaz

Copy link
Copy Markdown
Collaborator
failures:
    test_put_int_le_nbytes_overflow
    test_put_int_nbytes_overflow

prakrititz and others added 2 commits August 31, 2026 19:55
#502
updated the panic attributes for the following failures:
    test_put_int_le_nbytes_overflow
    test_put_int_nbytes_overflow
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
@alejandro-vaz
alejandro-vaz added this pull request to the merge queue Aug 31, 2026
Merged via the queue into servo:v2 with commit 6c2fcba Aug 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add #[should_panic] attribute expect options on tests/*.rs

2 participants