[squeak-dev] The Inbox: KernelTests-lrnp.423.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 24 05:10:17 UTC 2022

A new version of KernelTests was added to project The Inbox:

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

Name: KernelTests-lrnp.423
Author: lrnp
Time: 23 May 2022, 11:10:15.631043 pm
UUID: 497dd2b0-6f3e-438b-81a9-4ecd50b78268
Ancestors: KernelTests-nice.422

remove extreme memory test

It abuses system resources and can cause other programs to become corrupt if the pagefile fills the hard drive without at least 1 TB dedicated to RAM paging.

=============== Diff against KernelTests-nice.422 ===============

Item was removed:
- ----- Method: AllocationTest>>testOutOfMemorySignalExtreme (in category 'tests') -----
- testOutOfMemorySignalExtreme
- 	"Try to allocate a ridiculous amount of memory and check whether the expected error is signaled. Call Eliot when this test fails, he want your machine. :-)
- 	Note that current (2017) Spur VMs fail in #new: and #basicNew: with #'bad argument' if given other than a non-negative SmallInteger.
- 	Also note that this test can be quite stressful to your machine depending on how your operating system allocates the required memory behind the curtains. Better not triggering some robot fetching a tape from somewhere..."
- 	| sz |
- 	sz := 1024*1024*1024*1024. "= 1 TiB"
- 	self should: [Array new: sz]
- 		raise: OutOfMemory, Error
- 		withExceptionDo:
- 			[:ex|
- 			 ex class == Error ifTrue:
- 				[self assert: [ex messageText includesSubstring: 'basicNew: with invalid argument']]]!

More information about the Squeak-dev mailing list