diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2013-10-31 13:36:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-03 22:29:21 +0100 |
commit | b2262e6cc8cdf9205fb747690a0b0f6f4cbcc537 (patch) | |
tree | cbdc80949845665be39978a18c4298bfd8287a5b /tests | |
parent | a48ee0f0a31fb709a731bd55b9afc3e03de57f10 (diff) |
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 <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nft-parsing-test.c | 4 |
1 files 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 } |