mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 15:12:36 +02:00
tests: Add wrap for __fstat50 to fix tests for NetBSD
Tested by running unit tests on NetBSD 9.2 Ubuntu 22.04.1 (still pass) Change-Id: Icb8e453328cb40ab9d628f01ecdc3886a233dad5 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73649 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Tested-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
This commit is contained in:
parent
9fea866ad1
commit
028099dbfd
@ -60,6 +60,7 @@ mocks = [
|
|||||||
'-Wl,--wrap=__xstat64',
|
'-Wl,--wrap=__xstat64',
|
||||||
'-Wl,--wrap=fstat',
|
'-Wl,--wrap=fstat',
|
||||||
'-Wl,--wrap=fstat64',
|
'-Wl,--wrap=fstat64',
|
||||||
|
'-Wl,--wrap=__fstat50',
|
||||||
'-Wl,--wrap=__fxstat',
|
'-Wl,--wrap=__fxstat',
|
||||||
'-Wl,--wrap=__fxstat64',
|
'-Wl,--wrap=__fxstat64',
|
||||||
'-Wl,--wrap=fileno',
|
'-Wl,--wrap=fileno',
|
||||||
|
@ -229,6 +229,12 @@ int __wrap_fstat64(int fd, void *buf)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int __wrap___fstat50(int fd, void *buf)
|
||||||
|
{
|
||||||
|
LOG_ME;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int __wrap___fxstat(int fd, void *buf)
|
int __wrap___fxstat(int fd, void *buf)
|
||||||
{
|
{
|
||||||
LOG_ME;
|
LOG_ME;
|
||||||
|
@ -46,6 +46,7 @@ int __wrap___xstat(const char *path, void *buf);
|
|||||||
int __wrap___xstat64(const char *path, void *buf);
|
int __wrap___xstat64(const char *path, void *buf);
|
||||||
int __wrap_fstat(int fd, void *buf);
|
int __wrap_fstat(int fd, void *buf);
|
||||||
int __wrap_fstat64(int fd, void *buf);
|
int __wrap_fstat64(int fd, void *buf);
|
||||||
|
int __wrap___fstat50(int fd, void *buf);
|
||||||
int __wrap___fxstat(int fd, void *buf);
|
int __wrap___fxstat(int fd, void *buf);
|
||||||
int __wrap___fxstat64(int fd, void *buf);
|
int __wrap___fxstat64(int fd, void *buf);
|
||||||
char *__wrap_fgets(char *buf, int len, FILE *fp);
|
char *__wrap_fgets(char *buf, int len, FILE *fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user