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

#ifndef _check_confuse_h_
#define _check_confuse_h_

#include "../src/confuse.h"
#include <stdlib.h>

#define fail_unless(test) \
    do { if(!(test)) { \
        fprintf(stderr, \
                "----------------------------------------------\n" \
                "%s:%d: test FAILED:\nFailed test: %s\n" \
                "----------------------------------------------\n", \
                __FILE__, __LINE__, #test); \
        exit(1); \
    } } while(0)

#endif


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>