From: David Quigley Date: Wed, 13 Sep 2017 18:48:05 +0000 (-0400) Subject: ZTEST: Always enable asserts X-Git-Tag: zfs-0.8.0-rc1~560 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f4e2c88fd6ca44ec50f178ca8baa18a9c764a98;p=zfs ZTEST: Always enable asserts The build for ztest always enabled debug information but does not enable asserts unless --enable-debug is used. This will always enable asserts in the ztest code. Reviewed-by: George Melikov Reviewed-by Brian Behlendorf Signed-off-by: David Quigley Closes #6640 --- diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am index 930a7ec3a..cbfb95fd3 100644 --- a/cmd/ztest/Makefile.am +++ b/cmd/ztest/Makefile.am @@ -3,7 +3,7 @@ include $(top_srcdir)/config/Rules.am # -Wnoformat-truncation to get rid of compiler warning for unchecked # truncating snprintfs on gcc 7.1.1. AM_CFLAGS += $(DEBUG_STACKFLAGS) $(FRAME_LARGER_THAN) $(NO_FORMAT_TRUNCATION) -AM_CPPFLAGS += -DDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG DEFAULT_INCLUDES += \ -I$(top_srcdir)/include \