[libvirt PATCH 12/19] tests: authconfigtest: move declarations

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

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 tests/virauthconfigtest.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/tests/virauthconfigtest.c b/tests/virauthconfigtest.c
index a88b453543..1bff3debb0 100644
--- a/tests/virauthconfigtest.c
+++ b/tests/virauthconfigtest.c
@@ -84,20 +84,6 @@ mymain(void)
 
     virAuthConfigPtr config;
 
-#ifndef WIN32
-    signal(SIGPIPE, SIG_IGN);
-#endif /* WIN32 */
-
-#define TEST_LOOKUP(config, hostname, service, credname, expect) \
-    do  { \
-        const struct ConfigLookupData data = { \
-            config, hostname, service, credname, expect \
-        }; \
-        if (virTestRun("Test Lookup " hostname "-" service "-" credname, \
-                        testAuthLookup, &data) < 0) \
-            ret = -1; \
-    } while (0)
-
     const char *confdata =
         "[credentials-test]\n"
         "username=fred\n"
@@ -119,6 +105,20 @@ mymain(void)
         "[auth-libvirt-prod1.example.com]\n"
         "credentials=prod\n";
 
+#define TEST_LOOKUP(config, hostname, service, credname, expect) \
+    do  { \
+        const struct ConfigLookupData data = { \
+            config, hostname, service, credname, expect \
+        }; \
+        if (virTestRun("Test Lookup " hostname "-" service "-" credname, \
+                        testAuthLookup, &data) < 0) \
+            ret = -1; \
+    } while (0)
+
+#ifndef WIN32
+    signal(SIGPIPE, SIG_IGN);
+#endif /* WIN32 */
+
     if (!(config = virAuthConfigNewData("auth.conf", confdata, strlen(confdata))))
         return EXIT_FAILURE;
 
-- 
2.26.2




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

  Powered by Linux