]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Print XML file name in verbose CPU test
authorJiri Denemark <jdenemar@redhat.com>
Wed, 4 Jan 2012 13:23:20 +0000 (14:23 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Jan 2012 09:52:28 +0000 (10:52 +0100)
It's not totally obvious that a failure in

    CPU guest data(x86): host/guest (models, pref="qemu64")

test means one needs to fix

    x86-host+guest,models,qemu64-result.xml

where the expected XML is stored. Better to provide a nice hint in
verbose mode for failed tests.

tests/cputest.c

index 36b3eb4b8ed2f514b2c4a623e65c8213b2011954..5b7b951ccc6fd226c8476d1f9228c9757090017f 100644 (file)
@@ -180,6 +180,8 @@ cpuTestCompareXML(const char *arch,
         goto cleanup;
 
     if (STRNEQ(expected, actual)) {
+        if (virTestGetVerbose())
+            fprintf(stderr, "\nCompared to %s-%s.xml", arch, name);
         virtTestDifference(stderr, expected, actual);
         goto cleanup;
     }