Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlebs Ivanovskis <git-no-reply@zabbix.com>2017-11-27 21:13:31 +0300
committerGlebs Ivanovskis <git-no-reply@zabbix.com>2017-11-27 21:13:31 +0300
commit279cde0d2efb0661f5efe516b3d7093d679e96f6 (patch)
tree10398bb3e38c21a39dfcf0a5d38de3e8985ce985 /Makefile.am
parenteafd61e9022b424a95f93ffe05aa91156cb674fc (diff)
....I..... [DEV-628] extended mock data library with common file IO functions
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8fedb7d7f9b..1a7b80c34ff 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -100,10 +100,15 @@ WRAP_DB_FUNCS = \
-Wl,--wrap=DBexecute_multiple_query \
-Wl,--wrap=DBfree_result
+WRAP_IO_FUNCS = \
+ -Wl,--wrap=fopen \
+ -Wl,--wrap=fclose \
+ -Wl,--wrap=fgets
+
tests:
$(MAKE) $(AM_MAKEFLAGS) && \
cd tests && \
- $(MAKE) $(AM_MAKEFLAGS) LDFLAGS="$(LDFLAGS) $(WRAP_DB_FUNCS)" LIBS="$(LIBS) -lcmocka -lyaml" && \
+ $(MAKE) $(AM_MAKEFLAGS) LDFLAGS="$(LDFLAGS) $(WRAP_DB_FUNCS) $(WRAP_IO_FUNCS)" LIBS="$(LIBS) -lcmocka -lyaml" && \
./tests_run.pl
endif