mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
69bb187e82
commit
1fffd1605d
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user