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 Process>#isSuspended #6197

Merged
merged 1 commit into from Apr 21, 2020

Conversation

dionisiydk
Copy link
Contributor

#isSuspended method returns incorrect process state. For example:

[state := Processor activeProcess isSuspeded] fork.

returns true in state variable.
PR describes problem cases with tests and fixes them with Cuis version.

Problem cases are described with added tests
@@ -233,7 +273,7 @@ ProcessTest >> testIsTerminatingForcedTermination [
self assert: terminator identicalTo: process ].

[ process isTerminated ] whileFalse: [ 50 milliSeconds asDelay wait ].
self assert: process isSuspended.
self deny: process isSuspended.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice that terminated process is not suspended.

@Ducasse
Copy link
Member

Ducasse commented Apr 20, 2020

Ohhhhhh excellent. Thanks a lot denis.

Copy link
Member

@guillep guillep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@guillep guillep merged commit 7fc0df2 into pharo-project:Pharo9.0 Apr 21, 2020
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.

None yet

3 participants