mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 11:10:28 +09:00
tests: workaround for compiling with older cmocka
This commit is contained in:
@@ -39,6 +39,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 {
|
||||||
char *args[2];
|
char *args[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user