ack/tests/plat/lib/test.h
David Given 8a58614aef Rework the tests to run on pc86; lots of test fixes for the brk() test, which
was nearly useless; lots of fixes to qemuppc and pc86 sbrk(), which was broken;
change the pc86 console to echo output to the serial port (needed for running
tests on qemu).
2016-11-26 11:23:25 +01:00

15 lines
261 B
C

#ifndef TEST_H
#define TEST_H
#include <unistd.h>
#include <stdint.h>
extern void finished(void);
extern void writehex(uint32_t code);
extern void fail(uint32_t code);
#define ASSERT(condition) \
do { if (!(condition)) fail(__LINE__); } while(0)
#endif