mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
tests: Use fixedcontent variable
Commit ca32929908bbc94116493ad8915e7cd7ae0f57d5 added function virTestCompareToFile(), but forgot to use a fixedcontent value for the actual comparison. That lead to VIR_TEST_DEBUG=1 showing (for some tests) all the actual output from the first error to the end of the string due to the difference being an endline in the end. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
ead3cfc68d
commit
8563560026
@ -709,7 +709,7 @@ virTestCompareToFile(const char *strcontent,
|
||||
filecontent)) {
|
||||
virTestDifferenceFull(stderr,
|
||||
filecontent, filename,
|
||||
strcontent, NULL);
|
||||
fixedcontent, NULL);
|
||||
goto failure;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user