* [libnftables PATCH] tests: use the error reporting infraestructure
@ 2014-01-18 21:23 Arturo Borrero Gonzalez
0 siblings, 0 replies; only message in thread
From: Arturo Borrero Gonzalez @ 2014-01-18 21:23 UTC (permalink / raw)
To: netfilter-devel; +Cc: pablo
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(-)
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;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-18 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 21:23 [libnftables PATCH] tests: use the error reporting infraestructure Arturo Borrero Gonzalez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).