[squeak-dev] The Trunk: KernelTests-jar.413.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 15 15:11:43 UTC 2021

Christoph Thiede uploaded a new version of KernelTests to project The Trunk:

==================== 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