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);