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

@@ -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); \
}