[PATCH 10/12] tests: qemuxml2xml: Convert some fprintf to VIR_TEST_DEBUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 tests/qemuxml2xmltest.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index e3bd9c2..c0270d4 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -59,7 +59,7 @@ testXML2XMLHelper(const char *inxml,
         goto fail;
 
     if (!virDomainDefCheckABIStability(def, def)) {
-        fprintf(stderr, "ABI stability check failed on %s", inxml);
+        VIR_TEST_DEBUG("ABI stability check failed on %s", inxml);
         goto fail;
     }
 
@@ -151,7 +151,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
     virBufferAdd(&buf, testStatusXMLSuffix, -1);
 
     if (!(source = virBufferContentAndReset(&buf))) {
-        fprintf(stderr, "Failed to create the source XML");
+        VIR_TEST_DEBUG("Failed to create the source XML");
         goto cleanup;
     }
 
@@ -163,7 +163,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
     virBufferAdd(&buf, testStatusXMLSuffix, -1);
 
     if (!(expect = virBufferContentAndReset(&buf))) {
-        fprintf(stderr, "Failed to create the expect XML");
+        VIR_TEST_DEBUG("Failed to create the expect XML");
         goto cleanup;
     }
 
@@ -174,14 +174,14 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
                                       VIR_DOMAIN_DEF_PARSE_STATUS |
                                       VIR_DOMAIN_DEF_PARSE_ACTUAL_NET |
                                       VIR_DOMAIN_DEF_PARSE_PCI_ORIG_STATES))) {
-        fprintf(stderr, "Failed to parse domain status XML:\n%s", source);
+        VIR_TEST_DEBUG("Failed to parse domain status XML:\n%s", source);
         goto cleanup;
     }
 
     /* format it back */
     if (!(actual = virDomainObjFormat(driver.xmlopt, obj,
                                       VIR_DOMAIN_DEF_FORMAT_SECURE))) {
-        fprintf(stderr, "Failed to format domain status XML");
+        VIR_TEST_DEBUG("Failed to format domain status XML");
         goto cleanup;
     }
 
@@ -303,7 +303,7 @@ mymain(void)
 # define DO_TEST_FULL(name, is_different, when)                                \
     do {                                                                       \
         if (testInfoSet(&info, name, is_different, when) < 0) {                \
-            fprintf(stderr, "Failed to generate test data for '%s'", name);    \
+            VIR_TEST_DEBUG("Failed to generate test data for '%s'", name);    \
             return -1;                                                         \
         }                                                                      \
                                                                                \
-- 
2.5.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]