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

Fix a double-panic when static methods' expectations are oversatisfied #516

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

asomers
Copy link
Owner

@asomers asomers commented Sep 13, 2023

PR #443 ensured that static methods' expectations would be cleared on Drop. But it was only tested for methods that paniced due to too few method calls. For methods with too many calls it actually introduced a double-panic. Double panics are bad; they lead to processes getting SIGABRT. This was a regression in Mockall 0.11.4.

Fixes #491

PR #443 ensured that static methods' expectations would be cleared on
Drop.  But it was only tested for methods that paniced due to too few
method calls.  For methods with too many calls it actually introduced a
double-panic.  Double panics are bad; they lead to processes getting
SIGABRT.  This was a regression in Mockall 0.11.4.

Fixes #491
@asomers
Copy link
Owner Author

asomers commented Sep 13, 2023

@msr1k does this change work for you?

@msr1k
Copy link

msr1k commented Sep 24, 2023

I noticed this mention now. Okay, I will check it.

@msr1k
Copy link

msr1k commented Sep 24, 2023

No problem, it worked! Thanks.

@asomers asomers merged commit b3f5d6e into master Sep 25, 2023
@asomers asomers deleted the double-panic branch September 25, 2023 01:53
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.

tests failings with (signal: 6, SIGABRT: process abort signal)
2 participants