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, 9 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, v2_7, HEAD
confuse 2.7

#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>