projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
tests
/
utils
/
xml-utils
/
validate_xml.c
diff --git
a/tests/utils/xml-utils/validate_xml.c
b/tests/utils/xml-utils/validate_xml.c
index eafe8b779915ec5852fa00685104fbd757a04e1c..bb67e56e17edea75706b56c50ec072c49f2433be 100644
(file)
--- a/
tests/utils/xml-utils/validate_xml.c
+++ b/
tests/utils/xml-utils/validate_xml.c
@@
-11,7
+11,6
@@
* argv[2] Path to the XML to be validated
*/
* argv[2] Path to the XML to be validated
*/
-#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
@@
-26,6
+25,7
@@
#include <libxml/parser.h>
#include <lttng/lttng-error.h>
#include <libxml/parser.h>
#include <lttng/lttng-error.h>
+#include <common/macros.h>
struct validation_ctx {
xmlSchemaParserCtxtPtr parser_ctx;
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;
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);
/* Open the document */
doc = xmlParseFile(xml_file_path);
This page took
0.024375 seconds
and
4
git commands to generate.