diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-05-09 15:45:45 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-05-09 15:45:45 +0200 |
commit | 3f9ce10525849776286e5bcbc57a3f7a364b48d2 (patch) | |
tree | 59362615a31c81da251cc93731503761f6aadb11 | |
parent | 412c5014424312ab158dcd758a031f880f03a801 (diff) | |
download | libssh-3f9ce10525849776286e5bcbc57a3f7a364b48d2.tar.gz libssh-3f9ce10525849776286e5bcbc57a3f7a364b48d2.tar.xz libssh-3f9ce10525849776286e5bcbc57a3f7a364b48d2.zip |
tests: Fix buffer test without NARG macro support
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/unittests/torture_buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unittests/torture_buffer.c b/tests/unittests/torture_buffer.c index e29b572c..2a11c81a 100644 --- a/tests/unittests/torture_buffer.c +++ b/tests/unittests/torture_buffer.c @@ -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); |