[squeak-dev] Re: Resuming a terminated process
Andreas Raab
andreas.raab at gmx.de
Thu Mar 27 02:51:37 UTC 2008
Oh, and one more interesting issue:
[] newProcess terminate isTerminated ==> false
I think it's time to take this up with a few SUnit tests. How about these:
self assert: [] fork terminate isTerminated.
self assert: [] newProcess terminate isTerminated.
self should:[ [] fork terminate resume ] raise: Error.
self should:[ [] newProcess terminate resume ] raise: Error.
Any other interesting ones?
Cheers,
- Andreas
Andreas Raab wrote:
> Hi -
>
> Here is an interesting one:
>
> p := [self inform: 'Oh, noes'] fork.
> p terminate.
> p resume.
>
> This works fine on all Squeak versions that I've tried it on. Do people
> agree that this is a bug and should raise an error or is there any
> reason why it should behave the way it does right now?
>
> Note that the above also works for:
>
> p := [self inform: 'Oh, noes'] newProcess.
> p terminate.
> p resume.
> p terminate.
> p resume.
>
> etc.
>
> Cheers,
> - Andreas
>
>
>
More information about the Squeak-dev
mailing list
|