summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86b2171)
raw | patch | inline | side by side (parent: 86b2171)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Thu, 12 Nov 2015 19:48:35 +0000 (21:48 +0200) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Fri, 13 Nov 2015 15:56:08 +0000 (17:56 +0200) |
libkmstest/test.h | patch | blob | history |
diff --git a/libkmstest/test.h b/libkmstest/test.h
index 2700024c15ec1c29c030cfa72a08a1ece1f7c72d..3631f2ca2f384013ea3f7b12e7c5b7227bf215d3 100644 (file)
--- a/libkmstest/test.h
+++ b/libkmstest/test.h
fprintf(stderr, "%s:%d: %s:\n" fmt "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
abort(); \
}
fprintf(stderr, "%s:%d: %s:\n" fmt "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
abort(); \
}
+
+#define EXIT(fmt, ...) \
+ do { \
+ fprintf(stderr, fmt "\n", ##__VA_ARGS__); \
+ exit(-1); \
+ } while(0)