diff options
Diffstat (limited to 'test/test.h')
-rw-r--r-- | test/test.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.h b/test/test.h new file mode 100644 index 0000000..096470d --- /dev/null +++ b/test/test.h @@ -0,0 +1,9 @@ +#ifndef LIBTUBERIA_TEST_H__ +#define LIBTUBERIA_TEST_H__ + +#include <stdio.h> +#include <stdlib.h> + +#define TEST(a) do { int ret = (a); fprintf(stderr, "%4s %15s:%-4d %-40s : %-40s\n", ret ? "OK" : "FAIL", __FILE__, __LINE__, __func__, # a); if(!ret) { abort(); } } while(0); + +#endif //LIBTUBERIA_TEST_H__ |