diff options
author | Stef Walter <stefw@gnome.org> | 2013-04-05 23:52:39 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-05-21 11:31:09 +0200 |
commit | dcabaf1d56d410ba7ddb3dfbab9011bbbea5e6bc (patch) | |
tree | c49effa4a0696dc00fb591d95dc59e8579a8d030 /common/debug.h | |
parent | 7fd6d89d92b6f1b543bf2aa4b2e578201dad7147 (diff) |
Our own unit testing framework
* Support the TAP protocol
* Much cleaner without having to carry around state
* First class support for setup/teardown
* Port the common tests
* Wait on porting other tests until we've merged outstanding code
Diffstat (limited to 'common/debug.h')
-rw-r--r-- | common/debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/debug.h b/common/debug.h index f8b2cf4..0dcfeae 100644 --- a/common/debug.h +++ b/common/debug.h @@ -59,8 +59,10 @@ void p11_debug_precond (const char *format, ...) GNUC_PRINTF (1, 2) CLANG_ANALYZER_NORETURN; +#ifndef assert_not_reached #define assert_not_reached() \ (assert (false && "this code should not be reached")) +#endif #define return_val_if_fail(x, v) \ do { if (!(x)) { \ |