summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/nft-parsing-test.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c
index 5eaaa1e..8f01233 100644
--- a/tests/nft-parsing-test.c
+++ b/tests/nft-parsing-test.c
@@ -273,12 +273,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) {