From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH 3/4 V6 nft] test: shell: Add tests for deleting rule by description Date: Mon, 22 Aug 2016 18:27:19 +0200 Message-ID: <20160822162719.GA13225@salvia> References: <20160821212210.26161-1-carlosfg@riseup.net> <20160821212210.26161-3-carlosfg@riseup.net> <20160822162050.GA9973@salvia> <20160822162146.GB9973@salvia> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: netfilter-devel@vger.kernel.org To: Carlos Falgueras =?iso-8859-1?Q?Garc=EDa?= Return-path: Received: from mail.us.es ([193.147.175.20]:48774 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755650AbcHVQ1Y (ORCPT ); Mon, 22 Aug 2016 12:27:24 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 283E01F18DA for ; Mon, 22 Aug 2016 18:27:23 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 198EFFB45D for ; Mon, 22 Aug 2016 18:27:23 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 46D00100A57 for ; Mon, 22 Aug 2016 18:27:20 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20160822162146.GB9973@salvia> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, Aug 22, 2016 at 06:21:46PM +0200, Pablo Neira Ayuso wrote: > Hi Carlos, > > One of this test fails... so please send me a follow up to fix it. > > W: [FAILED] ./testcases/rule_management/0010delete-by-desc_0 > > This chunk also looks a bit strange to me. > > set +e; # Next commands can return 0 > REMAINS_RULE2DEL=$($NFT list -a ruleset | grep -c "$RULE2DEL") > REMAINS_RULES=$(( $($NFT list -a ruleset | wc -l) - 4 )) > set -e > > Please, send me follow up patchset to fix this. Also hitting this. rule.c: In function ‘rule_find_first’: rule.c:427:3: warning: implicit declaration of function ‘nftnl_rule_cmp’ [-Wimplicit-function-declaration] if (nftnl_rule_cmp(nlr1, nlr2)) ^ Sorry, I'm tossing this patchset, send a v7.