aboutsummaryrefslogtreecommitdiff
path: root/tests/framework.h
blob: 96ae3de186de93f2204c87c35b31c2698dd71702 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CLEAN_PATH_FRAMEWORK_H
#define CLEAN_PATH_FRAMEWORK_H

#include <stdio.h>

#define TEST_SEP ":"
#define TEST_PATH "/opt/local/bin:/opt/local/sbin:/usr/local/bin:" \
                  "/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin"

#define myassert(condition, ...) \
    do { \
        if (!(condition)) { \
            fprintf(stderr, "%s:%d:%s :: ", __FILE__, __LINE__, __FUNCTION__); \
            fprintf(stderr, __VA_ARGS__); \
            return 1; \
        } \
    } while (0)

#endif //CLEAN_PATH_FRAMEWORK_H