diff options
author | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2017-11-29 15:26:35 +0300 |
---|---|---|
committer | Glebs Ivanovskis <git-no-reply@zabbix.com> | 2017-11-29 15:26:35 +0300 |
commit | 773ce9735f3c134d95f020bf75682484b9cd754f (patch) | |
tree | d97141b84e971adaa1278d64522d3ecc03d48027 /Makefile.am | |
parent | f4de94e37130d60bc83d9d53695a6ad608b6ac8d (diff) |
....I..... [DEV-628] added ability to test functions that call exit()
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 10 |
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 |