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