tests: Drop VIR_MOCK_CALL_STAT

It wasn't as great idea as I thought. Thing around stat() are
more complicated than that. Therefore we need to revert
86d1705a8a plus drop use of the macro as introduced in
later patches.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik
2016-05-16 17:15:46 +02:00
parent a1344f70a1
commit 436397902e
4 changed files with 22 additions and 43 deletions

View File

@@ -26,6 +26,7 @@
#include <fcntl.h>
#include <execinfo.h>
#include <sys/file.h>
#include <sys/stat.h>
#include "internal.h"
#include "configmake.h"
@@ -192,7 +193,7 @@ int stat(const char *path, struct stat *sb)
checkPath(path);
return VIR_MOCK_CALL_STAT(_STAT_VER, path, sb);
return real_stat(path, sb);
}
int
@@ -202,7 +203,7 @@ __xstat(int ver, const char *path, struct stat *sb)
checkPath(path);
return VIR_MOCK_CALL_STAT(ver, path, sb);
return real___xstat(ver, path, sb);
}
int
@@ -212,7 +213,7 @@ lstat(const char *path, struct stat *sb)
checkPath(path);
return VIR_MOCK_CALL_LSTAT(_STAT_VER, path, sb);
return real_lstat(path, sb);
}
int
@@ -222,5 +223,5 @@ __lxstat(int ver, const char *path, struct stat *sb)
checkPath(path);
return VIR_MOCK_CALL_LSTAT(ver, path, sb);
return real___lxstat(ver, path, sb);
}