From: Jiri Denemark Date: Wed, 4 Jan 2012 13:23:20 +0000 (+0100) Subject: tests: Print XML file name in verbose CPU test X-Git-Tag: v0.9.10-rc1~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23cf79f07ecc5dcfec834eed55fe3bac411694ec;p=thirdparty%2Flibvirt.git tests: Print XML file name in verbose CPU test 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. --- diff --git a/tests/cputest.c b/tests/cputest.c index 36b3eb4b8e..5b7b951ccc 100644 --- a/tests/cputest.c +++ b/tests/cputest.c @@ -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; }