tests: Rename VIRT_TEST_* macros to VIR_TEST_*

We use the "vir" prefix pretty consistently in our
APIs, both external and internal, which made these
macros stood out.
This commit is contained in:
Andrea Bolognani 2017-03-29 16:45:42 +02:00
parent dff04e0af0
commit 4ceac4bf29
114 changed files with 122 additions and 122 deletions

View File

@ -203,7 +203,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/bhyveargv2xmlmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/bhyveargv2xmlmock.so")
#else

View File

@ -235,7 +235,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/bhyvexml2argvmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/bhyvexml2argvmock.so")
#else

View File

@ -127,7 +127,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -1305,6 +1305,6 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#endif /* !WIN32 */

View File

@ -1012,4 +1012,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -567,9 +567,9 @@ mymain(void)
}
#if WITH_QEMU
VIRT_TEST_MAIN_PRELOAD(mymain,
VIR_TEST_MAIN_PRELOAD(mymain,
abs_builddir "/.libs/domaincapsmock.so",
abs_builddir "/.libs/qemucpumock.so")
#else
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/domaincapsmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/domaincapsmock.so")
#endif

View File

@ -113,4 +113,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -230,7 +230,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -263,7 +263,7 @@ mymain(void)
return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -528,4 +528,4 @@ mymain(void)
return EXIT_SUCCESS;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -380,4 +380,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")

View File

@ -342,4 +342,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -106,4 +106,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -98,4 +98,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -451,4 +451,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -127,7 +127,7 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -105,7 +105,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -308,4 +308,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -151,4 +151,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -147,7 +147,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else /* ! defined (__linux__) */

View File

@ -164,4 +164,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -363,4 +363,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -105,4 +105,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -198,7 +198,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/nssmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/nssmock.so")
#else
int
main(void)

View File

@ -569,4 +569,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -516,7 +516,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else /* ! defined (__linux__) */

View File

@ -152,4 +152,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -849,4 +849,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -155,7 +155,7 @@ mymain(void)
return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -938,4 +938,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -293,7 +293,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -186,4 +186,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -189,4 +189,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/qemucaps2xmlmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/qemucaps2xmlmock.so")

View File

@ -48,7 +48,7 @@ main(int argc, char **argv)
virThread thread;
virQEMUCapsPtr caps;
VIRT_TEST_PRELOAD(abs_builddir "/.libs/qemucapsprobemock.so");
VIR_TEST_PRELOAD(abs_builddir "/.libs/qemucapsprobemock.so");
if (argc != 2) {
fprintf(stderr, "%s QEMU_binary\n", argv[0]);

View File

@ -155,4 +155,4 @@ mymain(void)
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -431,7 +431,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -856,4 +856,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -129,7 +129,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -2941,4 +2941,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -191,7 +191,7 @@ mymain(void)
return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -2523,7 +2523,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain,
VIR_TEST_MAIN_PRELOAD(mymain,
abs_builddir "/.libs/qemuxml2argvmock.so",
abs_builddir "/.libs/virrandommock.so",
abs_builddir "/.libs/qemucpumock.so")

View File

@ -1139,7 +1139,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/qemuxml2xmlmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/qemuxml2xmlmock.so")
#else

View File

@ -303,7 +303,7 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else
int
main(void)

View File

@ -43,4 +43,4 @@ mymain(void)
return 0;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -85,4 +85,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -379,4 +379,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")

View File

@ -340,4 +340,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")

View File

@ -196,4 +196,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -482,4 +482,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -227,4 +227,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -106,4 +106,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -282,4 +282,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -120,4 +120,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -150,4 +150,4 @@ mymain(void)
#undef TEST
#undef TEST_FULL
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -904,11 +904,11 @@ int virTestMain(int argc,
virLogOutputPtr *outputs = NULL;
if (getenv("VIR_TEST_FILE_ACCESS"))
VIRT_TEST_PRELOAD(TEST_MOCK);
VIR_TEST_PRELOAD(TEST_MOCK);
va_start(ap, func);
while ((lib = va_arg(ap, const char *)))
VIRT_TEST_PRELOAD(lib);
VIR_TEST_PRELOAD(lib);
va_end(ap);
progname = last_component(argv[0]);

View File

@ -110,12 +110,12 @@ int virTestMain(int argc,
...);
/* Setup, then call func() */
# define VIRT_TEST_MAIN(func) \
# define VIR_TEST_MAIN(func) \
int main(int argc, char **argv) { \
return virTestMain(argc, argv, func, NULL); \
}
# define VIRT_TEST_PRELOAD(lib) \
# define VIR_TEST_PRELOAD(lib) \
do { \
const char *preload = getenv("LD_PRELOAD"); \
if (preload == NULL || strstr(preload, lib) == NULL) { \
@ -135,7 +135,7 @@ int virTestMain(int argc,
} \
} while (0)
# define VIRT_TEST_MAIN_PRELOAD(func, ...) \
# define VIR_TEST_MAIN_PRELOAD(func, ...) \
int main(int argc, char **argv) { \
return virTestMain(argc, argv, func, __VA_ARGS__, NULL); \
}

View File

@ -284,4 +284,4 @@ mymain(void)
return result == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -152,7 +152,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#else

View File

@ -441,4 +441,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -175,4 +175,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -138,4 +138,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -714,4 +714,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -495,4 +495,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -107,4 +107,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnumamock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnumamock.so")

View File

@ -345,4 +345,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -944,7 +944,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/vircgroupmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/vircgroupmock.so")
#else
int

View File

@ -430,4 +430,4 @@ mymain(void)
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -179,4 +179,4 @@ mymain(void)
}
/* Forces usage of not so random virRandomBytes */
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")

View File

@ -727,4 +727,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -107,4 +107,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -117,4 +117,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -189,4 +189,4 @@ mymain(void)
return ret != 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -1184,9 +1184,9 @@ mymain(void)
}
# if WITH_DBUS
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
# else
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
# endif
#else /* ! defined (__linux__) */

View File

@ -639,4 +639,4 @@ mymain(void)
return (ret == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -265,6 +265,6 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virhostcpumock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virhostcpumock.so")
#endif /* __linux__ */

View File

@ -633,7 +633,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virpcimock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virpcimock.so")
#else
int
main(void)

View File

@ -243,7 +243,7 @@ mymain(void)
}
#if WITH_SELINUX
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/libsecurityselinuxhelper.so")
#else
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#endif

View File

@ -217,5 +217,5 @@ mymain(void)
return EXIT_SUCCESS;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#endif /* WIN32 */

View File

@ -105,4 +105,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -120,4 +120,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -174,7 +174,7 @@ mymain(void)
}
VIRT_TEST_MAIN(mymain);
VIR_TEST_MAIN(mymain);
#else
int
main(void)

View File

@ -371,4 +371,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -154,4 +154,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -234,4 +234,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virmacmapmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virmacmapmock.so")

View File

@ -344,12 +344,12 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdaemonmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdaemonmock.so")
#else
static int
mymain(void)
{
return EXIT_AM_SKIP;
}
VIRT_TEST_MAIN(mymain);
VIR_TEST_MAIN(mymain);
#endif

View File

@ -167,4 +167,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdevbandwidthmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdevbandwidthmock.so")

View File

@ -84,7 +84,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdevmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetdevmock.so")
#else
int
main(void)

View File

@ -547,4 +547,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -149,12 +149,12 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetserverclientmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virnetserverclientmock.so")
#else
static int
mymain(void)
{
return EXIT_AM_SKIP;
}
VIRT_TEST_MAIN(mymain);
VIR_TEST_MAIN(mymain);
#endif

View File

@ -597,4 +597,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -633,7 +633,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
#else

View File

@ -487,7 +487,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virrandommock.so")
#else

View File

@ -456,7 +456,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virpcimock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virpcimock.so")
#else
int
main(void)

View File

@ -350,7 +350,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virdbusmock.so")
#else /* ! __ELF__ */
int

View File

@ -174,7 +174,7 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virportallocatormock.so")
VIR_TEST_MAIN_PRELOAD(mymain, abs_builddir "/.libs/virportallocatormock.so")
#else /* defined(__linux__) && defined(RTLD_NEXT) */
int
main(void)

View File

@ -741,4 +741,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -241,4 +241,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -247,4 +247,4 @@ mymain(void)
return ret;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

View File

@ -419,6 +419,6 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)
#endif /* WIN32 */

View File

@ -1512,4 +1512,4 @@ mymain(void)
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
VIRT_TEST_MAIN(mymain)
VIR_TEST_MAIN(mymain)

Some files were not shown because too many files have changed in this diff Show More