From b2262e6cc8cdf9205fb747690a0b0f6f4cbcc537 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Thu, 31 Oct 2013 13:36:44 +0100 Subject: test: report compilation without support Print a message when there is no support for some parser. Remove those EOPNOTSUPPs because they are unused. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/nft-parsing-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c index 8f01233..e2931a6 100644 --- a/tests/nft-parsing-test.c +++ b/tests/nft-parsing-test.c @@ -251,7 +251,7 @@ failparsing: json_decref(root); return -1; #else - errno = EOPNOTSUPP; + printf("Compiled without support for JSON.\n"); return -1; #endif } @@ -350,7 +350,7 @@ failparsing: printf("\033[31mFAILED\e[0m (%s)\n", strerror(errno)); return -1; #else - errno = EOPNOTSUPP; + printf("Compiled without support for XML.\n"); return -1; #endif } -- cgit v1.2.3