Augeas: Disable container overflow detection
@@ -29,6 +29,10 @@ if (DEPENDENCY_PHASE)
set (AUGEAS_PLUGIN_LIBRARIES ${LIBAUGEAS_LIBRARIES} ${LIBXML2_LIBRARIES})
endif ()
+# ~~~
+# The unit test for the plugin fails on an ASAN enabled macOS build, if we do not disable container overflow detection.
+# Reference: https://travis-ci.org/sanssecours/elektra/jobs/418554628
+# ~~~
add_plugin (augeas
SOURCES aug.h
augeas.c
@@ -38,8 +42,8 @@ add_plugin (augeas
COMPILE_DEFINITIONS "${LIBAUGEAS_COMPILE_DEFINITIONS}"
LINK_ELEKTRA elektra-meta
elektra-proposal
- LINK_LIBRARIES ${AUGEAS_PLUGIN_LIBRARIES})
-
+ LINK_LIBRARIES ${AUGEAS_PLUGIN_LIBRARIES}
+ TEST_ENVIRONMENT "ASAN_OPTIONS=detect_container_overflow=0")
if (ADDTESTING_PHASE)
include (LibAddMacros)
endif ()
