[squeak-dev] The Trunk: CollectionsTests-cmm.163.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 20 14:58:05 UTC 2010


Chris Muller uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-cmm.163.mcz

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

Name: CollectionsTests-cmm.163
Author: cmm
Time: 18 May 2010, 7:33:36.427 pm
UUID: 046b8598-1924-4016-aaf8-4bb7aca5f1ee
Ancestors: CollectionsTests-ar.162

Test case for the finalization fix.

=============== Diff against CollectionsTests-ar.162 ===============

Item was added:
+ TestCase subclass: #WeakFinalizersTest
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'CollectionsTests-Weak'!

Item was added:
+ ----- Method: WeakFinalizersTest>>testNewFinalizationSupported (in category 'as yet unclassified') -----
+ testNewFinalizationSupported
+ 	| list item |
+ 
+ 	list := WeakFinalizationList new.
+ 	
+ 	
+ 	item := WeakFinalizerItem new list: list object: Object new executor: nil.
+ 	
+ 	self assert: (list first isNil).
+ 	self assert: (item object notNil).
+ 	
+ 	Smalltalk garbageCollect.
+ 	
+ 	self assert: (item object isNil).
+ 	self assert: (list first == item).
+ 	self assert: (list first next == nil).!




More information about the Squeak-dev mailing list