mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: workaround for compiling with older cmocka
This commit is contained in:
@@ -40,6 +40,12 @@
|
|||||||
|
|
||||||
#include <cmocka.h>
|
#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. */
|
/* Used by main to communicate with parse_opt. */
|
||||||
struct argument_s {
|
struct argument_s {
|
||||||
const char *pattern;
|
const char *pattern;
|
||||||
|
|||||||
Reference in New Issue
Block a user