Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / tests / utils / xml-utils / validate_xml.c
index eafe8b779915ec5852fa00685104fbd757a04e1c..bb67e56e17edea75706b56c50ec072c49f2433be 100644 (file)
@@ -11,7 +11,6 @@
   * argv[2] Path to the XML to be validated
   */
 
-#include <assert.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,6 +25,7 @@
 #include <libxml/parser.h>
 
 #include <lttng/lttng-error.h>
+#include <common/macros.h>
 
 struct validation_ctx {
        xmlSchemaParserCtxtPtr parser_ctx;
@@ -124,8 +124,8 @@ static int validate_xml(const char *xml_file_path, struct validation_ctx *ctx)
        int ret;
        xmlDocPtr doc = NULL;
 
-       assert(xml_file_path);
-       assert(ctx);
+       LTTNG_ASSERT(xml_file_path);
+       LTTNG_ASSERT(ctx);
 
        /* Open the document */
        doc = xmlParseFile(xml_file_path);
This page took 0.023467 seconds and 4 git commands to generate.