aboutsummaryrefslogtreecommitdiff
path: root/tests/framework.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:57:39 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:57:39 -0400
commita92b4038179c3706bd176097be1caabd88824755 (patch)
tree3ca109b34e24e5940e2d12acca39091c83963fd3 /tests/framework.h
parentea6e2613aca23c84373e686d739498969062f79e (diff)
downloadcleanpath-a92b4038179c3706bd176097be1caabd88824755.tar.gz
Add tests
Diffstat (limited to 'tests/framework.h')
-rw-r--r--tests/framework.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/framework.h b/tests/framework.h
new file mode 100644
index 0000000..96ae3de
--- /dev/null
+++ b/tests/framework.h
@@ -0,0 +1,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