提交 1a41ed5a 编写于 作者: T Tomáš Ryšavý 提交者: John Ferlan

tests: Rename virtTestMain to virTestMain.

This function doesn't follow our convention of naming functions.
上级 6151dc2f
......@@ -841,10 +841,10 @@ virTestSetEnvPath(void)
#define TEST_MOCK (abs_builddir "/.libs/virtestmock.so")
int virtTestMain(int argc,
char **argv,
int (*func)(void),
...)
int virTestMain(int argc,
char **argv,
int (*func)(void),
...)
{
const char *lib;
va_list ap;
......
......@@ -100,15 +100,15 @@ void virTestQuiesceLibvirtErrors(bool always);
void virTestCounterReset(const char *prefix);
const char *virTestCounterNext(void);
int virtTestMain(int argc,
char **argv,
int (*func)(void),
...);
int virTestMain(int argc,
char **argv,
int (*func)(void),
...);
/* Setup, then call func() */
# define VIRT_TEST_MAIN(func) \
int main(int argc, char **argv) { \
return virtTestMain(argc, argv, func, NULL); \
return virTestMain(argc, argv, func, NULL); \
}
# define VIRT_TEST_PRELOAD(lib) \
......@@ -133,7 +133,7 @@ int virtTestMain(int argc,
# define VIRT_TEST_MAIN_PRELOAD(func, ...) \
int main(int argc, char **argv) { \
return virtTestMain(argc, argv, func, __VA_ARGS__, NULL); \
return virTestMain(argc, argv, func, __VA_ARGS__, NULL); \
}
virCapsPtr virTestGenericCapsInit(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册