The Trunk: KernelTests-eem.355.mcz

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

The Trunk: KernelTests-eem.355.mcz

Eliot Miranda uploaded a new version of KernelTests to project The Trunk:

==================== 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') -----
  "Ensure that OutOfMemory is signaled eventually"
  | sz |
  self setFreeSpaceLimitOf: 1024 * 1024 * 1024 * (Smalltalk wordSize = 8
  ifTrue: [4]
  ifFalse: [1.5])
  [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
  ex class == Error ifTrue:
+ [self assert: [ex messageText includesSubstring: 'basicNew: with invalid argument']]]!
- [self assert: [ex messageText includesSubString: 'basicNew: with invalid argument']]]!