Merge request https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/584 
was reviewed by Joel Sherrill

--
  
Joel Sherrill started a new discussion on testsuites/libtests/exit04/init.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/584#note_126557

 > +  int eno;
 > +
 > +  eno = at_quick_exit( at_quick_exit_2 );

I think this can be done without adding another test executable. The 
at_quick_exit() function in newlib can fail if malloc() fails. If your test 
configures unified memory, then rtems_workspace_greedy_allocate() and 
rtems_workspace_greedy__allocate_free() can be used to consume all memory 
before the first at_quick_exit() call which will return NULL, then greedy free 
it back. See psxkey07 for an example.

IMO passing in NULL for the function pointer is an error also but newlib and 
glibc do not check for NULL pointers. On Linux and Cygwin, you get a core dump 
and that's good enough. Just for info -- no code changes anywhere for NULL 
pointer.


-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/584
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to