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-29 15:26:35 +0300
committerGlebs Ivanovskis <git-no-reply@zabbix.com>2017-11-29 15:26:35 +0300
commit773ce9735f3c134d95f020bf75682484b9cd754f (patch)
treed97141b84e971adaa1278d64522d3ecc03d48027 /Makefile.am
parentf4de94e37130d60bc83d9d53695a6ad608b6ac8d (diff)
....I..... [DEV-628] added ability to test functions that call exit()
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1a7b80c34ff..8e5fcf70021 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -105,10 +105,18 @@ WRAP_IO_FUNCS = \
-Wl,--wrap=fclose \
-Wl,--wrap=fgets
+WRAP_EXIT = \
+ -Wl,--wrap=exit
+
+COMMON_WRAP_FUNCS = \
+ $(WRAP_DB_FUNCS) \
+ $(WRAP_IO_FUNCS) \
+ $(WRAP_EXIT)
+
tests:
$(MAKE) $(AM_MAKEFLAGS) && \
cd tests && \
- $(MAKE) $(AM_MAKEFLAGS) LDFLAGS="$(LDFLAGS) $(WRAP_DB_FUNCS) $(WRAP_IO_FUNCS)" LIBS="$(LIBS) -lcmocka -lyaml" && \
+ $(MAKE) $(AM_MAKEFLAGS) LDFLAGS="$(LDFLAGS) $(COMMON_WRAP_FUNCS)" LIBS="$(LIBS) -lcmocka -lyaml" && \
./tests_run.pl
endif