mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
tests: workaround for compiling with older cmocka
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user