aboutsummaryrefslogtreecommitdiff
path: root/test/test.h
blob: 096470d9ccde1dd1b6ae6bba4e5b712d424b005c (plain) (blame)
1
2
3
4
5
6
7
8
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__