summaryrefslogblamecommitdiff
path: root/src/tests/eo/eunit_tests.h
blob: a34a0f103f0a85bb6c062dbb4ea94058f703127c (plain) (tree)
1
2
3
4
5
6
7
8
9








                          
                                                                 






                                              
#ifndef _EUNIT_TESTS_H
#define _EUNIT_TESTS_H

#define _EUNIT_EXIT_CODE 1

#define fail_if(x) \
   do { \
        if (x) \
          { \
             fprintf(stderr, "%s:%d - Failure '%s' is TRUE.\n", \
                   __FILE__, __LINE__, # x); \
             exit(_EUNIT_EXIT_CODE); \
          } \
   } while (0)

#endif