On 13/03/2015 7:29 pm, Sebastian Huber wrote:
On 12/03/15 18:41, Joel Sherrill wrote:
Hi
Many BSPs can link a test but don't actually have enough memory
to run the test. They will fail in the first few lines when the requested
memory for the RTEMS work area is not available. I hacked together
a script which adds together the code, data, bss, work space and
stack space requested. If this exceeds physical memory on the board,
then the test will fail. It is possible to come close and still run
out of
memory during initialization (e.g. malloc, etc) but this approach could
detect some tests which will fail by inspecting them on the host.
This is a shell script but would be better built into the rtems-tools
and using the gdb/mi. Combined with information on the
available memory on the target, we could throw out some obvious
failure cases without touching hardware.
Thoughts?
I would address this with better test output, so that you can get a
summery and see "X tests failed due to not enough memory for the
workspace".
+1
Chris
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel