2016-11-13 12:37:22 +00:00
|
|
|
#ifndef TEST_H
|
|
|
|
#define TEST_H
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
extern void finished(void);
|
2018-09-17 10:56:15 +00:00
|
|
|
extern void writehex(unsigned int code);
|
|
|
|
extern void fail(unsigned int code);
|
2016-11-13 12:37:22 +00:00
|
|
|
|
|
|
|
#define ASSERT(condition) \
|
2016-11-26 10:23:25 +00:00
|
|
|
do { if (!(condition)) fail(__LINE__); } while(0)
|
2016-11-13 12:37:22 +00:00
|
|
|
|
|
|
|
#endif
|