-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow loop detector replayer to continue executing after it finished the replayed part #524
Conversation
…eeds the replayed interleaving Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
src/jvm/main/org/jetbrains/kotlinx/lincheck/strategy/managed/LoopDetector.kt
Outdated
Show resolved
Hide resolved
// Unexpected `ThreadAbortedError` should be thrown. | ||
check(result is UnexpectedExceptionInvocationResult) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is transferring this check
below a necessary change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was on purpose. Looks like there could be cases when suddenResult is SpinCycleFoundAndReplayRequired
, but result !is UnexpectedExceptionInvocationResult
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could such case be added as a test then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to add a test with coroutines under #505, which fails because of this. But I haven't try to minimize it, because the execution trace is quite large in this test, and I cannot easily find a place that exactly triggers this problem.
Signed-off-by: Evgeniy Moiseenko <[email protected]>
This is part of #505