[PATCH] mtd: unittests: Stop testing stat() calls
David Oberhollenzer
david.oberhollenzer at sigma-star.at
Wed Feb 14 07:04:47 PST 2018
Applied to mtd-utils.git
On 02/05/2018 11:31 PM, Balint Reczey wrote:
> diff --git a/tests/unittests/Makemodule.am b/tests/unittests/Makemodule.am
> index 0ecdaa9..569866e 100644
> --- a/tests/unittests/Makemodule.am
> +++ b/tests/unittests/Makemodule.am
> @@ -1,6 +1,6 @@
> ubilib_test_SOURCES = tests/unittests/libubi_test.c lib/libubi.c
> ubilib_test_LDADD = $(CMOCKA_LIBS)
> -ubilib_test_LDFLAGS = -Wl,--wrap=open -Wl,--wrap=close -Wl,--wrap=stat -Wl,--wrap=ioctl -Wl,--wrap=read -Wl,--wrap=lseek
> +ubilib_test_LDFLAGS = -Wl,--wrap=open -Wl,--wrap=close -Wl,--wrap=ioctl -Wl,--wrap=read -Wl,--wrap=lseek
> ubilib_test_CPPFLAGS = -O0 --std=gnu99 $(CMOCKA_CFLAGS) -I include -DSYSFS_ROOT='"tests/unittests/sysfs_mock"'
I took the liberty of duplicating this change for libmtd_test defined below in the same file,
otherwise it wouldn't link due to a lack of the function your patch removes.
Thanks,
David
More information about the linux-mtd
mailing list