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

commits at source.squeak.org commits at source.squeak.org
Mon Feb 8 21:06:11 UTC 2021


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

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

Name: KernelTests-jar.393
Author: jar
Time: 8 February 2021, 10:06:09.126403 pm
UUID: af94938b-d43a-b94c-b306-922ab65afb78
Ancestors: KernelTests-eem.392

Test for Process>>priority: related to fix Kernel-jar.1368

=============== Diff against KernelTests-eem.392 ===============

Item was added:
+ ----- Method: ProcessTest>>testPriority (in category 'tests') -----
+ testPriority
+ 	"test whether #priority: preempts active process to allow higher priority processes run"
+ 
+ 	| val oldPriority |
+ 	val := nil.
+ 	oldPriority := Processor activePriority.
+ 	Processor activeProcess priority: oldPriority + 2.
+ 	[ val := false ] forkAt: oldPriority + 1.
+ 	[ val := true ] forkAt: oldPriority.
+ 	Processor activeProcess priority: oldPriority.
+ 	self assert: val equals: Smalltalk vm processPreemptionYields!



More information about the Squeak-dev mailing list