Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/testsuite/include/check.h')
-rw-r--r--newlib/testsuite/include/check.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/testsuite/include/check.h b/newlib/testsuite/include/check.h
new file mode 100644
index 000000000..df7f0cfa2
--- /dev/null
+++ b/newlib/testsuite/include/check.h
@@ -0,0 +1,7 @@
+#define CHECK(a) { \
+ if (!(a)) \
+ { \
+ printf ("Failed " #a " in <%s> at line %d\n", __FILE__, __LINE__); \
+ abort(); \
+ } \
+}