summaryrefslogtreecommitdiff
path: root/test/lib/testassert.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/testassert.c')
-rw-r--r--test/lib/testassert.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lib/testassert.c b/test/lib/testassert.c
new file mode 100644
index 0000000..2a31ff3
--- /dev/null
+++ b/test/lib/testassert.c
@@ -0,0 +1,25 @@
+/*
+ * This file is part of libdom test suite.
+ * Licensed under the MIT License,
+ * http://www.opensource.org/licenses/mit-license.php
+ * Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "testassert.h"
+#include "utils.h"
+
+void __assert2(const char *expr, const char *function,
+ const char *file, int line)
+{
+ UNUSED(function);
+ UNUSED(file);
+
+ printf("FAIL - %s at line %d\n", expr, line);
+
+ exit(EXIT_FAILURE);
+}
+
+