test for rtems_workspace_greedy_allocate

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 8 05:31:27 UTC 2021

On 08/02/2021 06:14, Sebastian Huber wrote:

> We already have a ticket for this:
> https://devel.rtems.org/ticket/3982
> I am not sure how to fix this. Maybe we should force the sbrk() 
> support to first give us all the memory of the system. Another 
> approach is to remove the sbrk() support. What is the benefit of it? 

Another approach is to remove the greedy allocation functions and test 
the no memory conditions differently. We could wrap the allocator 
function and let if fail every n-the call. With this you can write 
generic tests like:

for i=1,2,...

    let allocate fail in i-th call

   p = test()

   if p != NULL:


embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:

More information about the devel mailing list