]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Use fixedcontent variable
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 13 Sep 2016 10:49:56 +0000 (12:49 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 15 Sep 2016 09:24:32 +0000 (11:24 +0200)
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>
tests/testutils.c

index 8ea6ab82ad5abb12de9cfe2363e0f539a47525fe..f87628edee68aeb45e44b575f892288b91a27eea 100644 (file)
@@ -709,7 +709,7 @@ virTestCompareToFile(const char *strcontent,
                         filecontent)) {
         virTestDifferenceFull(stderr,
                               filecontent, filename,
-                              strcontent, NULL);
+                              fixedcontent, NULL);
         goto failure;
     }