Make test suites compatible with #include <assert.h>

Don't use the macro name assert. It's technically permitted as long as
<assert.h> is not included, but it's fragile, because it means the
code and any header that it includes must not include <assert.h>.
This commit is contained in:
Gilles Peskine 2019-06-07 14:52:07 +02:00
parent 47f2de1329
commit 9e23bea692
3 changed files with 13 additions and 13 deletions

View file

@ -179,7 +179,7 @@ static int parse_arguments( char *buf, size_t len, char **params,
if( p + 1 < buf + len )
{
cur = p + 1;
assert( cnt < params_len );
TEST_HELPER_ASSERT( cnt < params_len );
params[cnt++] = cur;
}
*p = '\0';