[PATCH v2 07/19] tests: Rename virtTest00MActive to virTest00MActive.

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

 



This function doesn't follow our convention of naming functions.
---
 tests/qemuargv2xmltest.c | 2 +-
 tests/qemuxml2argvtest.c | 2 +-
 tests/testutils.c        | 2 +-
 tests/testutils.h        | 2 +-
 tests/virfirewalltest.c  | 8 ++++----
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c
index 25f0a69..3b5707f 100644
--- a/tests/qemuargv2xmltest.c
+++ b/tests/qemuargv2xmltest.c
@@ -69,7 +69,7 @@ static int testCompareXMLToArgvFiles(const char *xmlfile,
                                              cmd, NULL, NULL, NULL)))
         goto fail;
 
-    if (!virtTestOOMActive()) {
+    if (!virTestOOMActive()) {
         if ((log = virtTestLogContentAndReset()) == NULL)
             goto fail;
         if (flags & FLAG_EXPECT_WARNING) {
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 1056be0..7f2d0c2 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -351,7 +351,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
         VIR_TEST_DEBUG("Error expected but there wasn't any.\n");
         goto out;
     }
-    if (!virtTestOOMActive()) {
+    if (!virTestOOMActive()) {
         if (flags & FLAG_EXPECT_FAILURE) {
             if ((log = virtTestLogContentAndReset()))
                 VIR_TEST_DEBUG("Got expected error: \n%s", log);
diff --git a/tests/testutils.c b/tests/testutils.c
index 54e1659..e2054a1 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -84,7 +84,7 @@ static size_t testEnd;
 
 char *progname;
 
-bool virtTestOOMActive(void)
+bool virTestOOMActive(void)
 {
     return testOOMActive;
 }
diff --git a/tests/testutils.h b/tests/testutils.h
index 77a5d25..d395120 100644
--- a/tests/testutils.h
+++ b/tests/testutils.h
@@ -46,7 +46,7 @@ extern char *progname;
 #  error Fix Makefile.am
 # endif
 
-bool virtTestOOMActive(void);
+bool virTestOOMActive(void);
 
 int virTestRun(const char *title,
                int (*body)(const void *data),
diff --git a/tests/virfirewalltest.c b/tests/virfirewalltest.c
index 338f714..6f4fed5 100644
--- a/tests/virfirewalltest.c
+++ b/tests/virfirewalltest.c
@@ -611,7 +611,7 @@ testFirewallNoRollback(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
     }
 
-    if (virtTestOOMActive())
+    if (virTestOOMActive())
         goto cleanup;
 
     if (virBufferError(&cmdbuf))
@@ -701,7 +701,7 @@ testFirewallSingleRollback(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
     }
 
-    if (virtTestOOMActive())
+    if (virTestOOMActive())
         goto cleanup;
 
     if (virBufferError(&cmdbuf))
@@ -794,7 +794,7 @@ testFirewallManyRollback(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
     }
 
-    if (virtTestOOMActive())
+    if (virTestOOMActive())
         goto cleanup;
 
     if (virBufferError(&cmdbuf))
@@ -917,7 +917,7 @@ testFirewallChainedRollback(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
     }
 
-    if (virtTestOOMActive())
+    if (virTestOOMActive())
         goto cleanup;
 
     if (virBufferError(&cmdbuf))
-- 
2.5.5

--
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]