diff options
Diffstat (limited to 'tests/torture.h')
-rw-r--r-- | tests/torture.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h index f5897561..7464c446 100644 --- a/tests/torture.h +++ b/tests/torture.h @@ -40,6 +40,12 @@ #include <cmocka.h> +#ifndef assert_return_code +/* hack for older versions of cmocka */ +#define assert_return_code(code, errno) \ + assert_true(code >= 0) +#endif /* assert_return_code */ + /* Used by main to communicate with parse_opt. */ struct argument_s { const char *pattern; |