From patchwork Sat Jan 18 21:23:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arturo Borrero X-Patchwork-Id: 312333 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B6D112C00A5 for ; Sun, 19 Jan 2014 08:23:23 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751436AbaARVXR (ORCPT ); Sat, 18 Jan 2014 16:23:17 -0500 Received: from smtp3.cica.es ([150.214.5.190]:55818 "EHLO smtp.cica.es" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751400AbaARVXR (ORCPT ); Sat, 18 Jan 2014 16:23:17 -0500 Received: from localhost (unknown [127.0.0.1]) by smtp.cica.es (Postfix) with ESMTP id 15F4151EEB5; Sat, 18 Jan 2014 21:23:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at cica.es Received: from smtp.cica.es ([127.0.0.1]) by localhost (mail.cica.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VCG6ZZ-RV3-I; Sat, 18 Jan 2014 22:23:04 +0100 (CET) Received: from nfdev.cica.es (nfdev.cica.es [IPv6:2a00:9ac0:c1ca:31::220]) by smtp.cica.es (Postfix) with ESMTP id B74E751EEB4; Sat, 18 Jan 2014 22:23:04 +0100 (CET) Subject: [libnftables PATCH] tests: use the error reporting infraestructure To: netfilter-devel@vger.kernel.org From: Arturo Borrero Gonzalez Cc: pablo@netfilter.org Date: Sat, 18 Jan 2014 22:23:02 +0100 Message-ID: <20140118212302.12195.86634.stgit@nfdev.cica.es> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 --- 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 --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; }