On 10/21/14 14:17, Bernd Schmidt wrote:
Some tests use stdio functions which are unavaiable with the cut-down
newlib I'm using for ptx testing. I'm somewhat uncertain what to do with
these; they are by no means the only unavailable library functions the
testsuite tries to use (signal is another example). Here's a patch which
deals with parts of the problem, but I wouldn't mind leaving this one
out if it doesn't seem worthwhile.
Tests probably shouldn't be using stdio anyway, except perhaps for the
wrapper used when we run remotes and such to print the PASS/FAIL message.
One could argue a better direction would be to change calls into stdio
to instead call some other function defined in the same .c file. That
"other function" would be marked as noinline. That would help minimize
the possibility of compromising the test.
Jeff