diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2015-01-24 14:50:30 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2015-02-12 11:19:04 +0100 |
commit | 2a780afc57200699bbd66a32ea5278b1ae8f3f43 (patch) | |
tree | bacb4f94addf3aec1ee75ecedce5ffe3f801178e | |
parent | 940cb233cebc5b932f875371df15d802984085f7 (diff) | |
download | libssh-2a780afc57200699bbd66a32ea5278b1ae8f3f43.tar.gz libssh-2a780afc57200699bbd66a32ea5278b1ae8f3f43.tar.xz libssh-2a780afc57200699bbd66a32ea5278b1ae8f3f43.zip |
tests: workaround for compiling with older cmocka
-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; |