mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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); \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user