barnowl_perlaimdebianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since fe0a16a was
0138478,
checked in by Nelson Elhage <nelhage@mit.edu>, 18 years ago
|
Test failures now print out file/line numbers
|
-
Property mode set to
100644
|
File size:
293 bytes
|
Rev | Line | |
---|
[0138478] | 1 | #ifndef __OWL_TEST_H__ |
---|
| 2 | #define __OWL_TEST_H__ |
---|
| 3 | |
---|
| 4 | #define FAIL_UNLESS(desc,pred) do { int __pred = (pred); \ |
---|
| 5 | printf("\t%-4s: %s", (__pred)?"ok":(numfailed++,"FAIL"), desc); \ |
---|
| 6 | if(!(__pred)) printf("\t(%s:%d)", __FILE__, __LINE__); printf("%c", '\n'); } while(0) |
---|
| 7 | |
---|
| 8 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.