[squeak-dev] The Trunk: KernelTests-eem.355.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Mar 6 23:16:07 UTC 2019


Eliot Miranda uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-eem.355.mcz

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

Name: KernelTests-eem.355
Author: eem
Time: 6 March 2019, 3:16:05.445238 pm
UUID: 6dcbdd43-dbe7-4ddf-8142-ec9c7fb4296c
Ancestors: KernelTests-tonyg.354

Avoid using a deprecated message (includesSubString:) in a test.

=============== Diff against KernelTests-tonyg.354 ===============

Item was changed:
  ----- Method: AllocationTest>>testOutOfMemorySignal (in category 'tests') -----
  testOutOfMemorySignal
  	"Ensure that OutOfMemory is signaled eventually"
  	| sz |
  	self setFreeSpaceLimitOf: 1024 * 1024 * 1024 * (Smalltalk wordSize = 8
  														ifTrue: [4]
  														ifFalse: [1.5])
  		around:
  			[sz := 512*1024*1024. "work around the 1GB alloc bug"
  			 self should: [(1 to: 2000) collect: [:i| Array new: sz]] raise: OutOfMemory].
  
  	"Call me when this test fails, I want your machine."
  	"Current (2017) Spur VMs fail new: & basicNew: with #'bad argument' if given other than a non-negative SmallInteger."
  	sz := 1024*1024*1024*1024.
  	self should: [Array new: sz]
  		raise: OutOfMemory, Error
  		withExceptionDo:
  			[:ex|
  			 ex class == Error ifTrue:
+ 				[self assert: [ex messageText includesSubstring: 'basicNew: with invalid argument']]]!
- 				[self assert: [ex messageText includesSubString: 'basicNew: with invalid argument']]]!



More information about the Squeak-dev mailing list