[squeak-dev] The Inbox: KernelTests-jar.413.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Dec 3 12:38:15 UTC 2021
A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-jar.413.mcz
==================== Summary ====================
Name: KernelTests-jar.413
Author: jar
Time: 3 December 2021, 1:38:13.228317 pm
UUID: b3a17a26-89fe-d64e-9062-b0183c5c8260
Ancestors: KernelTests-mt.412
Complement Kernel-jar.1426 (new #teminate).
Tests whether the effectiveProcess is set to be that of the process that is being terminated while its unwind block executes.
=============== Diff against KernelTests-mt.412 ===============
Item was added:
+ ----- Method: ProcessTest>>testProcessFaithfulTermination (in category 'tests') -----
+ testProcessFaithfulTermination
+ "When terminating a process, unwind blocks should be evaluated as if they were executed by the process being terminated."
+
+ | process |
+ [[process := Processor activeProcess.
+ Processor activeProcess suspend] ensure: [
+ self assert: process = Processor activeProcess]
+ ] fork.
+ Processor yield.
+ process terminate.
+ self assert: process isTerminated!
More information about the Squeak-dev
mailing list
|