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

commits at source.squeak.org commits at source.squeak.org
Wed Dec 15 14:53:18 UTC 2021


Christoph Thiede uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ct.413.mcz

==================== Summary ====================

Name: KernelTests-ct.413
Author: ct
Time: 15 December 2021, 3:52:44.195981 pm
UUID: b00df611-f61d-5942-891e-046932c47167
Ancestors: KernelTests-mt.412, KernelTests-jar.396

Merges KernelTests-jar.396.

=============== Diff against KernelTests-mt.412 ===============

Item was added:
+ ----- Method: ProcessTest>>terminated (in category 'support') -----
+ terminated
+ 	"supports testProcessStateTests2"
+ 	
+ 	^self suspend.
+ !

Item was added:
+ ----- Method: ProcessTest>>testProcessStateTests2 (in category 'tests') -----
+ testProcessStateTests2
+ 	"I test that a process is terminated when it reaches the last instruction 
+ 	of the bottom context for methods other than Process>>#terminate; 
+ 	this test would fail with the version of isTerminated before 3/11/2021."
+ 
+ 	| bottomContext newProcess |
+ 	
+ 	newProcess := Process new.
+ 	bottomContext := Context 
+ 		sender: nil 
+ 		receiver: newProcess 
+ 		method: (ProcessTest>>#terminated) 
+ 		arguments: {}.
+ 	newProcess suspendedContext: ([] asContextWithSender: bottomContext).
+ 	newProcess priority: Processor activePriority.
+ 	
+ 	self deny: newProcess isTerminated.
+ 	newProcess terminate.
+ 	self assert: newProcess isTerminated.
+ !



More information about the Squeak-dev mailing list