summaryrefslogtreecommitdiff
path: root/test/testmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testmain.c')
-rw-r--r--test/testmain.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/testmain.c b/test/testmain.c
index 95fd6d2..421d06f 100644
--- a/test/testmain.c
+++ b/test/testmain.c
@@ -16,8 +16,16 @@
#endif
/* This means that assertion failures are silent in tests */
-extern void __assert_fail(void);
-void __assert_fail(void) { abort(); }
+#ifndef NDEBUG
+void __assert_fail(const char *__assertion, const char *__file,
+ unsigned int __line, const char *__function) {
+ (void)__assertion;
+ (void)__file;
+ (void)__line;
+ (void)__function;
+ abort();
+}
+#endif
int
main(int argc, char **argv)