[Pkg] The Treated Inbox: KernelTests-jar.426.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jun 9 08:05:45 UTC 2022


Marcel Taeumel uploaded a new version of KernelTests to project The Treated Inbox:
http://source.squeak.org/treated/KernelTests-jar.426.mcz

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

Name: KernelTests-jar.426
Author: jar
Time: 3 June 2022, 7:13:06.751641 pm
UUID: 60821aa1-f749-134e-922d-e9588194888c
Ancestors: KernelTests-mt.425

Test whether priority is set before suspendedContext during process creation.

Complements Kernel-jar.1473
	
Setting priority after causes an endless stream of error windows when debugging e.g.
        [] newProcess
when Process Browser is open with auto-update on.

Once the suspendedContext is set, the new process is no longer considered terminated and Process Browser will try to place it in its list of processes but encounters a nil error when reading its priority because it has not been set yet."

=============== Diff against KernelTests-mt.425 ===============

Item was added:
+ ----- Method: ProcessTest>>testPrioritySetBeforeSuspendedContext (in category 'tests') -----
+ testPrioritySetBeforeSuspendedContext
+ 	"Test whether priority is set before suspendedContext during process creation."
+ 	
+ 	"Setting priority after causes an endless stream of error windows when debugging e.g.
+         	[] newProcess
+ 	when Process Browser is open with auto-update on.
+ 
+ 	Once the suspendedContext is set, the new process is no longer considered terminated
+ 	and Process Browser will try to place it in its list of processes but encounters a nil error 
+ 	when reading its priority because it has not been set yet."
+ 
+ 	| p inside |
+ 	inside := false.
+ 	p := [inside := true. [] newProcess] newProcess.
+ 	p runUntil: [:ctx | inside]. 
+ 	p runUntil: [:ctx | ctx selectorToSendOrSelf = #suspendedContext:].
+ 	self assert: (p suspendedContext tempAt: 3) priority notNil!



More information about the Packages mailing list