tests: Don't wrap virTestDifference() arguments in NULLSTR()

The virTestDifference() is perfectly capable of handling NULL
arguments. There's no need to wrap arguments in NULLSTR().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Michal Privoznik 2022-11-30 09:47:08 +01:00
parent 69bb187e82
commit 1fffd1605d
2 changed files with 3 additions and 9 deletions

View File

@ -93,9 +93,7 @@ testVirNetDevBandwidthSet(const void *data)
}
if (STRNEQ_NULLABLE(exp_cmd, actual_cmd)) {
virTestDifference(stderr,
NULLSTR(exp_cmd),
NULLSTR(actual_cmd));
virTestDifference(stderr, exp_cmd, actual_cmd);
return -1;
}

View File

@ -176,9 +176,7 @@ testVirNetDevOpenvswitchInterfaceSetQos(const void *data)
}
if (STRNEQ_NULLABLE(info->exp_cmd, actual_cmd)) {
virTestDifference(stderr,
NULLSTR(info->exp_cmd),
NULLSTR(actual_cmd));
virTestDifference(stderr, info->exp_cmd, actual_cmd);
return -1;
}
@ -207,9 +205,7 @@ testVirNetDevOpenvswitchInterfaceClearQos(const void *data)
}
if (STRNEQ_NULLABLE(info->exp_cmd, actual_cmd)) {
virTestDifference(stderr,
NULLSTR(info->exp_cmd),
NULLSTR(actual_cmd));
virTestDifference(stderr, info->exp_cmd, actual_cmd);
return -1;
}