This function doesn't follow our convention of naming functions. --- tests/testutils.c | 2 +- tests/testutils.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/testutils.c b/tests/testutils.c index 934fce5..2dbac99 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -840,7 +840,7 @@ virTestSetEnvPath(void) #define TEST_MOCK (abs_builddir "/.libs/virtestmock.so") -int virtTestMain(int argc, +int virTestMain(int argc, char **argv, const char *lib, int (*func)(void)) diff --git a/tests/testutils.h b/tests/testutils.h index 2b718a1..8c01157 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -100,7 +100,7 @@ void virTestQuiesceLibvirtErrors(bool always); void virTestCounterReset(const char *prefix); const char *virTestCounterNext(void); -int virtTestMain(int argc, +int virTestMain(int argc, char **argv, const char *lib, int (*func)(void)); @@ -108,7 +108,7 @@ int virtTestMain(int argc, /* Setup, then call func() */ # define VIRT_TEST_MAIN(func) \ int main(int argc, char **argv) { \ - return virtTestMain(argc, argv, NULL, func); \ + return virTestMain(argc, argv, NULL, func); \ } # define VIRT_TEST_PRELOAD(lib) \ @@ -133,7 +133,7 @@ int virtTestMain(int argc, # define VIRT_TEST_MAIN_PRELOAD(func, lib) \ int main(int argc, char **argv) { \ - return virtTestMain(argc, argv, lib, func); \ + return virTestMain(argc, argv, lib, func); \ } virCapsPtr virTestGenericCapsInit(void); -- 2.5.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list