Pre-processor magic or test library?

Chris Johns chrisj at rtems.org
Mon Oct 30 04:50:39 UTC 2017


On 28/10/2017 22:42, Sebastian Huber wrote:
> 
> we have currently some pre-processor magic to map the standard output functions to the RTEMS test printer. This works only if you include <tmacros.h> in every test file in the right spot. An alternative would be to use a separate library for all tests, e.g. librtemstest.a which provides puts(), printf(), fprintf(), etc. How do you think about this?
> 

I like it.

How do we test stdio and related pieces of code? Is that a specially built test?

Chris


More information about the devel mailing list