diff --git a/libkmstest/test.h b/libkmstest/test.h
index fb51d2929c143bbc137f4e28cedda51078292479..3631f2ca2f384013ea3f7b12e7c5b7227bf215d3 100644 (file)
--- a/libkmstest/test.h
+++ b/libkmstest/test.h
abort(); \
}
+#define FAIL(fmt, ...) \
+ do { \
+ fprintf(stderr, "%s:%d: %s:\n" fmt "\n", __FILE__, __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); \
+ abort(); \
+ } while(0)
+
#define FAIL_IF(x, fmt, ...) \
if (unlikely(x)) { \
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)