diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-07-18 10:22:44 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-07-18 10:22:44 +0100 |
commit | b20c9fb6a6a20059786fc52acd60cda9c6833291 (patch) | |
tree | 6ee530388010c81fb6ef0c8342d920699f2be02c /test | |
parent | 2c99255d4e567c5acefdf4f1c06d9f1a6378b680 (diff) | |
download | libwapcaplet-b20c9fb6a6a20059786fc52acd60cda9c6833291.tar.gz libwapcaplet-b20c9fb6a6a20059786fc52acd60cda9c6833291.tar.bz2 |
Update to include asserts in interface macros, and test successfully
Diffstat (limited to 'test')
-rw-r--r-- | test/testmain.c | 12 |
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) |