File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / tests / check_confuse.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Jan 24 14:48:56 2017 UTC (7 years, 5 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, v2_7, HEAD
confuse 2.7

    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>