Report error when building XML tree. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@xxxxxxxxx> --- tests/nft-parsing-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c index 5333dbd..3d26c3a 100644 --- a/tests/nft-parsing-test.c +++ b/tests/nft-parsing-test.c @@ -274,12 +274,18 @@ static int test_xml(const char *filename) tree = mxmlLoadFile(NULL, fp, MXML_NO_CALLBACK); fclose(fp); - if (tree == NULL) + if (tree == NULL) { + printf("unable to build XML tree from file %s %s\n", filename, + FAILED_STR); return -1; + } xml = mxmlSaveAllocString(tree, MXML_NO_CALLBACK); - if (xml == NULL) + if (xml == NULL) { + printf("unable to alloc string from XML tree from %s %s\n", + filename, FAILED_STR); return -1; + } /* Check what parsing should be done */ if (strcmp(tree->value.opaque, "table") == 0) { -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html