magic/test: remove NULL as format string

Remove passing NULL as a format string parameter
in test. Convert to FAIL_IF_NULL.
pull/4271/head
Jason Ish 6 years ago committed by Victor Julien
parent 5f1c851716
commit 342fa8ee26

@ -344,10 +344,7 @@ static int MagicDetectTest03(void)
FAIL_IF_NULL(result);
char *str = strstr(result, "OpenDocument Text");
if (str == NULL) {
printf("result %s, not \"OpenDocument Text\": ", str);
FAIL;
}
FAIL_IF_NULL(str);
magic_close(magic_ctx);
PASS;
@ -517,10 +514,7 @@ static int MagicDetectTest07(void)
FAIL_IF_NULL(result);
char *str = strstr(result, "OpenDocument Text");
if (str == NULL) {
printf("result %s, not \"OpenDocument Text\": ", str);
FAIL;
}
FAIL_IF_NULL(str);
MagicDeinit();
PASS;

Loading…
Cancel
Save