release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since a2b3289 was
a2b3289,
checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago
|
tester: Report the test count at the end, not the beginning.
A static test count is just too much effort to maintain correct.
|
-
Property mode set to
100644
|
File size:
389 bytes
|
Line | |
---|
1 | #ifndef __OWL_TEST_H__ |
---|
2 | #define __OWL_TEST_H__ |
---|
3 | |
---|
4 | extern int numtests; |
---|
5 | |
---|
6 | #define FAIL_UNLESS(desc,pred) do { int __pred = (pred); \ |
---|
7 | numtests++; \ |
---|
8 | printf("%s %s", (__pred)?"ok":(numfailed++,"not ok"), desc); \ |
---|
9 | if(!(__pred)) printf("\t(%s:%d)", __FILE__, __LINE__); printf("%c", '\n'); } while(0) |
---|
10 | |
---|
11 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.