diff mbox

[libnftables] tests: use the error reporting infraestructure

Message ID 20140118212302.12195.86634.stgit@nfdev.cica.es
State Deferred
Headers show

Commit Message

Arturo Borrero Jan. 18, 2014, 9:23 p.m. UTC
In commit dec6874 [data_reg: fix verdict format approach] I added an unrelated
loose line to nft-parsing-test.c

That line made use of the libnftables parsing error reporting, and is actually
really useful.

So lets use it officially in nft-parsing-test.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 tests/nft-parsing-test.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c
index df981ad..63f7950 100644
--- a/tests/nft-parsing-test.c
+++ b/tests/nft-parsing-test.c
@@ -121,7 +121,7 @@  failparsing:
 	fclose(fp);
 	printf("parsing %s: ", filename);
 	printf("\033[31mFAILED\e[0m (%s)\n", strerror(errno));
-	nft_parse_perror("fail", err);
+	nft_parse_perror("Detailed error", err);
 	return -1;
 }
 
@@ -158,6 +158,7 @@  failparsing:
 	fclose(fp);
 	printf("parsing %s: ", filename);
 	printf("\033[31mFAILED\e[0m (%s)\n", strerror(errno));
+	nft_parse_perror("Detailed error", err);
 	return -1;
 }