Merge ENGINE-259
authorDamiano Boppart <damiano@pep-security.net>
Mon, 18 Sep 2017 16:13:30 +0200
changeset 2065ffbc5ef0eea6
parent 2061 578476d90c0f
parent 2064 c222d7d481ad
child 2066 5db8bf68416e
Merge ENGINE-259
     1.1 --- a/test/Makefile	Fri Sep 15 17:22:37 2017 +0200
     1.2 +++ b/test/Makefile	Mon Sep 18 16:13:30 2017 +0200
     1.3 @@ -57,6 +57,12 @@
     1.4  UNIT_TESTS=$(subst .cc,,$(UNIT_TESTS_SOURCE))
     1.5  UNIT_TESTS_RUN=$(subst .cc,_run,$(UNIT_TESTS_SOURCE))
     1.6  
     1.7 +ifneq ($(MAKECMDGOALS),clean)
     1.8 +    ifneq (,$(findstring -DNDEBUG,$(CFLAGS)))
     1.9 +        $(error The macro NDEBUG must not be defined for test compilation.)
    1.10 +    endif
    1.11 +endif
    1.12 +
    1.13  .PHONY: all
    1.14  all: $(TARGET) $(UNIT_TESTS)
    1.15