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

commits at source.squeak.org commits at source.squeak.org
Wed Dec 29 17:53:51 UTC 2021


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

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

Name: KernelTests-ct.418
Author: ct
Time: 29 December 2021, 6:53:33.543638 pm
UUID: 7249862f-06c0-5043-a561-e2ed9c79c92a
Ancestors: KernelTests-ct.416

Tweaks #testObjectsAsMethod to avoid event all broadcasting (which made the test slower/harder to debug on some systems). Sorry for the noise!

=============== Diff against KernelTests-ct.416 ===============

Item was changed:
  ----- Method: ContextTest>>testObjectsAsMethod (in category 'tests') -----
  testObjectsAsMethod
  
  	| result error |
  	SystemChangeNotifier uniqueInstance doSilently: [
  		self class addSelector: #foo withMethod: (TestObjectForMethod new xxxMethod: thisContext homeMethod)].
  	
  	result := Context runSimulated: [[self foo] on: Error do: [:ex | error := ex]].
  	error ifNotNil: [self fail: error].
  	
+ 	SystemChangeNotifier uniqueInstance doSilently: [
+ 		[self assert: self foo equals: result]
+ 			ensure: [self class removeSelector: #foo]].!
- 	[self assert: self foo equals: result]
- 		ensure: [self class removeSelector: #foo].!



More information about the Squeak-dev mailing list