Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/talloc/testsuite.c
Original file line number Diff line number Diff line change
@@ -63,7 +63,9 @@ static double private_timeval_elapsed(struct timeval *tv)
}

#define torture_assert_str_equal(test, arg1, arg2, desc) \
if (arg1 == NULL && arg2 == NULL) { \
if (arg1 == NULL && arg2 == NULL) { /* OK, both NULL == equal */ \
} else if (arg1 == NULL || arg2 == NULL) { \
return false; \
} else if (strcmp(arg1, arg2)) { \
printf("failure: %s [\n%s: Expected %s, got %s: %s\n]\n", \
test, __location__, arg1, arg2, desc); \

0 comments on commit ff2b0e2

Please sign in to comment.