Annotation of embedaddon/confuse/tests/check_confuse.h, revision 1.1
1.1 ! misho 1: #ifndef _check_confuse_h_
! 2: #define _check_confuse_h_
! 3:
! 4: #include "../src/confuse.h"
! 5: #include <stdlib.h>
! 6:
! 7: #define fail_unless(test) \
! 8: do { if(!(test)) { \
! 9: fprintf(stderr, \
! 10: "----------------------------------------------\n" \
! 11: "%s:%d: test FAILED:\nFailed test: %s\n" \
! 12: "----------------------------------------------\n", \
! 13: __FILE__, __LINE__, #test); \
! 14: exit(1); \
! 15: } } while(0)
! 16:
! 17: #endif
! 18:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>