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

Chris Muller asqueaker at gmail.com
Tue May 31 22:56:42 UTC 2022


-1.  Managing memory constraints is essential for certain software like
servers.  This is a valuable test, please consider my alternative solution
in KernelTests-cmm.423 in the Inbox.

Best,
  Chris

On Tue, May 24, 2022 at 12:10 AM <commits at source.squeak.org> wrote:

> A new version of KernelTests was added to project The Inbox:
> http://source.squeak.org/inbox/KernelTests-lrnp.423.mcz
>
> ==================== 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']]]!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220531/058e02ab/attachment.html>


More information about the Squeak-dev mailing list