<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Oct 30, 2017 8:43 AM, "Chris Johns" <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">On 28/10/2017 22:42, Sebastian Huber wrote:<br>
><br>
> 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?<br>
><br>
<br>
</div>I like it.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I like the idea but not using the same names for the.methods. this will mean that if the linker magic isn't right, you end up getting the wrong implementation </div><div dir="auto"><br></div><div dir="auto">Also, some of the tests are portable with the RTEMS configuration separate from the test and the test entry being main(). If we hack on the tests enough, we lose this ability.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
How do we test stdio and related pieces of code? Is that a specially built test?<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">It will have to be.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#888888"><br>
Chris<br>
</font><div class="elided-text">______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</div></blockquote></div><br></div></div></div>