diff --git a/tests/virtestmock.c b/tests/virtestmock.c index bc62312444..df8cac6441 100644 --- a/tests/virtestmock.c +++ b/tests/virtestmock.c @@ -190,7 +190,11 @@ int access(const char *path, int mode) } -#define VIR_MOCK_STAT_HOOK CHECK_PATH(path) +#define VIR_MOCK_STAT_HOOK \ + do { \ + init_syms(); \ + checkPath(path, "stat"); \ + } while (0) #include "virmockstathelpers.c"