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:
parent
47f2de1329
commit
9e23bea692
3 changed files with 13 additions and 13 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue