[squeak-dev] The Inbox: ToolsTests-btc.49.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 11 16:22:16 UTC 2011


A new version of ToolsTests was added to project The Inbox:
http://source.squeak.org/inbox/ToolsTests-btc.49.mcz

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

Name: ToolsTests-btc.49
Author: btc
Time: 12 July 2011, 12:22:10.5 am
UUID: e31f9b65-d96b-8846-a317-25ba0bc319c4
Ancestors: ToolsTests-fbs.48

Single stepping through a debugger can observe an inconsistent state after object creation but before initiialisation.  Thus 'object size' may throw an axception for trying to do arithmetic on nil.  Modified OrderedCollectionInspector>>fieldList to call 'self objectSize' to handle this exception. This tests that fix.

=============== Diff against ToolsTests-fbs.48 ===============

Item was added:
+ TestCase subclass: #OrderedCollectionInspectorTest
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'ToolsTests-Inspector'!

Item was added:
+ ----- Method: OrderedCollectionInspectorTest>>testUninitialized (in category 'as yet unclassified') -----
+ testUninitialized
+ 	"Single stepping through a debugger can observe the object state after creation but before initiialisation."
+ 	"Thus 'object size' may throw an axception for trying to do arithmetic on nil."
+ 	"Modified OrderedCollectionInspector>>fieldList to call 'self objectSize' to handle this exception."
+ 	"Original error reproduction: [ self halt. OrderedCollectionInspector openOn: (OrderedCollection new: 5) ]     "
+ 	
+ 	self shouldnt:  ( (OrderedCollectionInspector openOn: OrderedCollection basicNew) delete notNil ) raise: Error.!




More information about the Squeak-dev mailing list