summaryrefslogtreecommitdiff
path: root/tests/xencapstest.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-02-27 04:35:08 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-02-27 04:35:08 +0000
commit63bc5dd3e159e669425f5f931ba49d9a82830f0d (patch)
treef851a3288a903b190e149f138bab519224f66f45 /tests/xencapstest.c
parent727c5601ec7d1e21e38d219db2b5886ab4d79e78 (diff)
downloadlibvirt-63bc5dd3e159e669425f5f931ba49d9a82830f0d.tar.gz
Add formal internal capabilities API and update drivers to use it
Diffstat (limited to 'tests/xencapstest.c')
-rw-r--r--tests/xencapstest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/xencapstest.c b/tests/xencapstest.c
index 1307d80af7..ff9ed33362 100644
--- a/tests/xencapstest.c
+++ b/tests/xencapstest.c
@@ -50,7 +50,8 @@ static int testCompareFiles(const char *hostmachine,
if (!(actualxml = xenHypervisorMakeCapabilitiesXML(NULL, hostmachine, fp1, fp2)))
goto fail;
- if (getenv("DEBUG_TESTS")) {
+ if (getenv("DEBUG_TESTS") &&
+ STRNEQ(expectxml, actualxml)) {
printf("In test file %s:\n", capabilities);
printf("Expect %d '%s'\n", (int)strlen(expectxml), expectxml);
printf("Actual %d '%s'\n", (int)strlen(actualxml), actualxml);