diff --git a/dap_test.h b/dap_test.h
index 9f3243974504f730d250b99d8dfb61b828a6a904..55a84a5a61840cd0ddfd49664f766c84ee225a0d 100755
--- a/dap_test.h
+++ b/dap_test.h
@@ -21,6 +21,9 @@
     printf(__VA_ARGS__); \
     printf("%s\n", TEXT_COLOR_RESET);
 
+#define dap_fail(msg) \
+    printf("\t%s%s!%s\n", TEXT_COLOR_RED, msg, TEXT_COLOR_RESET); \
+    exit(-1);
 
 /* PIF - print if failed. For checking value in loop, for don't repeat output */
 #define dap_assert_PIF(expr, msg) \