]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: drivermodule: Drop unused macro arguments
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 Jan 2017 12:19:59 +0000 (13:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Feb 2017 07:19:11 +0000 (08:19 +0100)
Refactors of the test resulted into the second argument of the 'TEST'
macro to be unused. Drop them.

tests/virdrivermoduletest.c

index 870a07de636a9a7c21559a45d9aa6932c54897ad..09c1a614b70c096dd260434d1302620b066e44b6 100644 (file)
@@ -47,53 +47,50 @@ mymain(void)
 {
     int ret = 0;
 
-#define TEST(name, dep1)                                                   \
+#define TEST(name)                                                         \
     do  {                                                                  \
         if (virTestRun("Test driver " # name, testDriverModule, name) < 0) \
             ret = -1;                                                      \
     } while (0)
 
 #ifdef WITH_NETWORK
-# define USE_NETWORK "network"
-    TEST("network", NULL);
-#else
-# define USE_NETWORK NULL
+    TEST("network");
 #endif
 #ifdef WITH_INTERFACE
-    TEST("interface", NULL);
+    TEST("interface");
 #endif
 #ifdef WITH_STORAGE
-    TEST("storage", NULL);
+    TEST("storage");
 #endif
 #ifdef WITH_NODE_DEVICES
-    TEST("nodedev", NULL);
+    TEST("nodedev");
 #endif
 #ifdef WITH_SECRETS
-    TEST("secret", NULL);
+    TEST("secret");
 #endif
 #ifdef WITH_NWFILTER
-    TEST("nwfilter", NULL);
+    TEST("nwfilter");
 #endif
 #ifdef WITH_XEN
-    TEST("xen", NULL);
+    TEST("xen");
 #endif
 #ifdef WITH_LIBXL
-    TEST("libxl", NULL);
+    TEST("libxl");
 #endif
 #ifdef WITH_QEMU
-    TEST("qemu", USE_NETWORK);
+    TEST("qemu");
 #endif
 #ifdef WITH_LXC
-    TEST("lxc", USE_NETWORK);
+    TEST("lxc");
 #endif
 #ifdef WITH_UML
-    TEST("uml", NULL);
+    TEST("uml");
 #endif
 #ifdef WITH_VBOX
-    TEST("vbox", NULL);
+    TEST("vbox");
 #endif
 #ifdef WITH_BHYVE
-    TEST("bhyve", NULL);
+    TEST("bhyve");
 #endif
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;