tests: Adjust header inclusions and Makefile.test
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 3 Apr 2020 02:46:36 +0000 (13:46 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 3 Apr 2020 02:46:36 +0000 (13:46 +1100)
commitc13c73f1ae93c4d33458fa050953d6675f4e269d
tree87fb323a71311ffb0b30418e40d2839f2b57550a
parent04ec2115ad9e838c1684dac1e2e78bd5f1b58a60
tests: Adjust header inclusions and Makefile.test

This fixes the decrementer, illegal and sc tests to compile
successfully with cross-compilers that don't provide unistd.h
or string.h.  Instead of those headers we include stddef.h.

This also fixes tests/Makefile.test to do what one expects
when CROSS_COMPILE is defined in the environment.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
tests/Makefile.test
tests/decrementer/decrementer.c
tests/illegal/illegal.c
tests/sc/sc.c