Changeset 10822 for trunk/psLib/test/pstap/src/pstap.h
- Timestamp:
- Dec 21, 2006, 10:32:47 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/pstap/src/pstap.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/pstap/src/pstap.h
r10818 r10822 15 15 16 16 // write a comment which is counted as a test (and swallowed by prove) 17 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__); 17 # define note(A, ...){ \ 18 fprintf(stdout, A, ## __VA_ARGS__); \ 19 fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); } 20 21 // write a comment which is counted as a test (and swallowed by prove) 22 # define noted(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__); 18 23 19 24 // use to test the value of a float 20 25 # define ok_float(VALUE,EXPECT,COMMENT, ...)\ 21 26 ok((fabsf((VALUE)-(EXPECT)) < FLT_EPSILON), COMMENT, ## __VA_ARGS__); 22 23 // write a comment which is counted as a test (and swallowed by prove)24 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);25 27 26 28 // use to test the value of a double … … 73 75 74 76 // write a comment which is counted as a test (and swallowed by prove) 75 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ...); 77 // write a comment which is counted as a test (and swallowed by prove) 78 # define note(A, ...){ \ 79 fprintf(stdout, A, ...); \ 80 fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); } 76 81 77 82 // use to test the value of a float
Note:
See TracChangeset
for help on using the changeset viewer.
