mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
tests: drivermodule: Drop unused macro arguments
Refactors of the test resulted into the second argument of the 'TEST' macro to be unused. Drop them.
This commit is contained in:
parent
58ea495988
commit
2e4e6affdd
@ -47,53 +47,50 @@ mymain(void)
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#define TEST(name, dep1) \
|
#define TEST(name) \
|
||||||
do { \
|
do { \
|
||||||
if (virTestRun("Test driver " # name, testDriverModule, name) < 0) \
|
if (virTestRun("Test driver " # name, testDriverModule, name) < 0) \
|
||||||
ret = -1; \
|
ret = -1; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#ifdef WITH_NETWORK
|
#ifdef WITH_NETWORK
|
||||||
# define USE_NETWORK "network"
|
TEST("network");
|
||||||
TEST("network", NULL);
|
|
||||||
#else
|
|
||||||
# define USE_NETWORK NULL
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_INTERFACE
|
#ifdef WITH_INTERFACE
|
||||||
TEST("interface", NULL);
|
TEST("interface");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_STORAGE
|
#ifdef WITH_STORAGE
|
||||||
TEST("storage", NULL);
|
TEST("storage");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_NODE_DEVICES
|
#ifdef WITH_NODE_DEVICES
|
||||||
TEST("nodedev", NULL);
|
TEST("nodedev");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_SECRETS
|
#ifdef WITH_SECRETS
|
||||||
TEST("secret", NULL);
|
TEST("secret");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_NWFILTER
|
#ifdef WITH_NWFILTER
|
||||||
TEST("nwfilter", NULL);
|
TEST("nwfilter");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_XEN
|
#ifdef WITH_XEN
|
||||||
TEST("xen", NULL);
|
TEST("xen");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_LIBXL
|
#ifdef WITH_LIBXL
|
||||||
TEST("libxl", NULL);
|
TEST("libxl");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_QEMU
|
#ifdef WITH_QEMU
|
||||||
TEST("qemu", USE_NETWORK);
|
TEST("qemu");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_LXC
|
#ifdef WITH_LXC
|
||||||
TEST("lxc", USE_NETWORK);
|
TEST("lxc");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_UML
|
#ifdef WITH_UML
|
||||||
TEST("uml", NULL);
|
TEST("uml");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_VBOX
|
#ifdef WITH_VBOX
|
||||||
TEST("vbox", NULL);
|
TEST("vbox");
|
||||||
#endif
|
#endif
|
||||||
#ifdef WITH_BHYVE
|
#ifdef WITH_BHYVE
|
||||||
TEST("bhyve", NULL);
|
TEST("bhyve");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
|
Loading…
Reference in New Issue
Block a user