repo.or.cz
/
cake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Workaround for includes conflict that stopped compilation with GCC 3.
[cake.git]
/
test
/
clib
/
test.h
blob
c36584699c24b68f869194203471b8a4b28e842a
1
/* Prototypes for mandatory functions */
2
void
cleanup
(
void
);
3
4
/* Return values */
5
#define OK 0
/* All tests succeded */
6
#define FAIL 5
/* Some of the tests failed */
7
8
/* Testing macro */
9
#define TEST(x) if( !x ) \
10
{ \
11
printf(
"Test FAILED in %s, line %d.
\n
"
, __FILE__, __LINE__ ); \
12
cleanup(); \
13
return FAIL; \
14
}