projects
/
profile
/
ivi
/
eobj.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
000d18c015962a8edf6601d59a2d2c521486ed32
[profile/ivi/eobj.git]
/
examples
/
eunit_tests.h
1
#ifndef _EUNIT_TESTS_H
2
#define _EUNIT_TESTS_H
3
4
#define _EUNIT_EXIT_CODE 1
5
6
#define fail_if(x) \
7
do { \
8
if (x) \
9
{ \
10
fprintf(stderr, "%s:%d - Failure '%s' is TRUE.", \
11
__FILE__, __LINE__, # x); \
12
exit(_EUNIT_EXIT_CODE); \
13
} \
14
} while (0)
15
16
#endif
17