]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Rename virtTestClearCommandPath to virTestClearCommandPath.
authorTomáš Ryšavý <tom.rysavy.0@gmail.com>
Thu, 26 May 2016 15:01:55 +0000 (17:01 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 8 Jun 2016 15:23:12 +0000 (11:23 -0400)
This function doesn't follow our convention of naming functions.

tests/networkxml2firewalltest.c
tests/nwfilterebiptablestest.c
tests/nwfilterxml2firewalltest.c
tests/testutils.c
tests/testutils.h

index baf59043180cbc982424f674ec745bbf893a8794..f3a501a0b0f7467c671c7b8884e9f7bd95eac20c 100644 (file)
@@ -65,7 +65,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
         goto cleanup;
 
     actualargv = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actualargv);
+    virTestClearCommandPath(actualargv);
     virCommandSetDryRun(NULL, NULL, NULL);
 
     if (virTestCompareToFile(actualargv, cmdline) < 0)
index 84e5ed24efd5a8a1eebe4bdb20fbd99fdf5210aa..74f9ebd366a6594722e834530bb440e0377570bd 100644 (file)
@@ -113,7 +113,7 @@ testNWFilterEBIPTablesAllTeardown(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -184,7 +184,7 @@ testNWFilterEBIPTablesTearOldRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -233,7 +233,7 @@ testNWFilterEBIPTablesRemoveBasicRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -267,7 +267,7 @@ testNWFilterEBIPTablesTearNewRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -339,7 +339,7 @@ testNWFilterEBIPTablesApplyBasicRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -429,7 +429,7 @@ testNWFilterEBIPTablesApplyDHCPOnlyRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
@@ -502,7 +502,7 @@ testNWFilterEBIPTablesApplyDropAllRules(const void *opaque ATTRIBUTE_UNUSED)
         goto cleanup;
 
     actual = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actual);
+    virTestClearCommandPath(actual);
 
     if (STRNEQ_NULLABLE(actual, expected)) {
         virTestDifference(stderr, expected, actual);
index 205d3b6e161fdfeb1ffbf8c0484c4410b47d3c91..ba327d019580ea7866308a203cdc9daf43393766 100644 (file)
@@ -400,7 +400,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
         goto cleanup;
 
     actualargv = virBufferContentAndReset(&buf);
-    virtTestClearCommandPath(actualargv);
+    virTestClearCommandPath(actualargv);
     virCommandSetDryRun(NULL, NULL, NULL);
 
     testRemoveCommonRules(actualargv);
index 081ed8bf9962cd598d0f0f213e871c12e8de39f5..e643fb21bf999273a0f6ad959e69eb7619e1910e 100644 (file)
@@ -1008,7 +1008,7 @@ int virtTestMain(int argc,
  *  iptables --table filter --insert FORWARD --out-interface virbr0 --jump REJECT
  *  iptables --table filter --insert FORWARD --in-interface virbr0 --out-interface virbr0 --jump ACCEPT"
  */
-void virtTestClearCommandPath(char *cmdset)
+void virTestClearCommandPath(char *cmdset)
 {
     size_t offset = 0;
     char *lineStart = cmdset;
index d9f92b51153f877188fb3a30ca7fd075de808dc4..77a5d259c0f7d86658668e61b644e75c00be88cb 100644 (file)
@@ -54,7 +54,7 @@ int virTestRun(const char *title,
 int virTestLoadFile(const char *file, char **buf);
 int virtTestCaptureProgramOutput(const char *const argv[], char **buf, int maxlen);
 
-void virtTestClearCommandPath(char *cmdset);
+void virTestClearCommandPath(char *cmdset);
 
 int virTestDifference(FILE *stream,
                       const char *expect,