[squeak-dev] The Inbox: KernelTests-jar.427.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 3 19:16:09 UTC 2022


A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-jar.427.mcz

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

Name: KernelTests-jar.427
Author: jar
Time: 3 June 2022, 9:16:06.853526 pm
UUID: d09440fa-7ddf-4144-be3f-0cf1bb61e512
Ancestors: KernelTests-jar.426

Improve comment for KernelTests-jar.426

=============== Diff against KernelTests-jar.426 ===============

Item was changed:
  ----- 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:].
+ 	"Now p is before assigning suspendedContext in Process class >> forContext:priority:
+ 	tempAt: 3 is the local variable 'newProcess' representing the newly created process;
+ 	verify whether the new process's priority has already been set."
  	self assert: (p suspendedContext tempAt: 3) priority notNil!



More information about the Squeak-dev mailing list