From 1ec238638c156bd8a30f20a48556eb17f6716eeb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 12 May 2016 17:49:11 +1000 Subject: [PATCH] Makefile: ensure ASAN isn't triggered on deliberate SEGV some of the memory buffer code triggers a SEGV deliberately in the testing framework. setting allow_user_segv_handler=true stops it from crashing our test early. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 883e95bb..f9fb752e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -444,7 +444,7 @@ endif # wine filter. LOG_COMPILER = ${top_srcdir}/build-aux/wine-crlf.sh -LOG_DRIVER = env RS='\r\n' AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh +LOG_DRIVER = env ASAN_OPTIONS=$(ASAN_OPTIONS):allow_user_segv_handler=true AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh TESTS = $(TEST_BIN) test/json-parse.sh test/json-schema.py check_PROGRAMS = $(TEST_BIN)