]> granicus.if.org Git - libexpat/commitdiff
Tests: Fix CPPFLAGS=-DNDEBUG ourselves (#160)
authorSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 19:41:18 +0000 (21:41 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 24 Oct 2017 19:41:18 +0000 (21:41 +0200)
expat/Changes
expat/tests/runtests.c

index 72976053125d968c9934763cef4ce7286b2ba1df..132f0744d36180f2f7a9ea99f641551722ea1ada 100644 (file)
@@ -29,6 +29,7 @@ Release 2.2.5 ???????????????????
                     and dereferencing that pointer
               #6  Resolve superfluous internal malloc/realloc switch
        #153 #155  Improve docbook2x-man detection
+            #160  Undefine NDEBUG in the test suite (rather than rejecting it)
 
         Special thanks to:
             Benbuck Nason
index 8e26a785f736d059bed95842e3bf36d08785ec57..5d729eab6dd36e4d74833fc95906a21c2c213942 100644 (file)
    USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
+#if defined(NDEBUG)
+# undef NDEBUG  /* because test suite relies on assert(...) at the moment */
+#endif
+
 #ifdef HAVE_EXPAT_CONFIG_H
 # include <expat_config.h>
 #endif
 # endif /* XML_UNICODE */
 #endif /* XML_UNICODE_WCHAR_T */
 
-#if defined(NDEBUG)
-# error  \
-    The test suite relies on assert(...) at the moment. \
-    You have NDEBUG defined which removes that code so that failures in the \
-    test suite can go unnoticed. \
-    \
-    While we rely on assert(...), compiling the test suite with NDEBUG \
-    defined is not supported.
-#endif
-
 
 static XML_Parser parser = NULL;