1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

tests: Fix buffer test without NARG macro support

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2016-05-09 15:45:45 +02:00
parent 412c501442
commit 3f9ce10525

View File

@ -243,7 +243,10 @@ static void torture_buffer_pack_badformat(void **state){
/* with additional format */
rc = ssh_buffer_pack(buffer, "bb", b);
#ifdef HAVE_GCC_NARG_MACRO
/* We can only detect errors if we have support for NARG macros */
assert_int_equal(rc, SSH_ERROR);
#endif
/* unpack with missing format */
ssh_buffer_reinit(buffer);