From a819871655d803ea139225ea05dbdf055758bf18 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 8 May 2018 13:23:25 +0200 Subject: tests: shell: delete chain and rule with jump to chain in same transaction We should not hit EBUSY in this case. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/transactions/0015chain_0 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tests/shell/testcases/transactions/0015chain_0 (limited to 'tests/shell/testcases/transactions') diff --git a/tests/shell/testcases/transactions/0015chain_0 b/tests/shell/testcases/transactions/0015chain_0 new file mode 100755 index 00000000..90f87182 --- /dev/null +++ b/tests/shell/testcases/transactions/0015chain_0 @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +RULESET="add table x +add chain x y +add chain x z +add rule x z jump y" + +$NFT -f - <<< $RULESET +if [ $? -ne 0 ] ; then + echo "E: unable to load good ruleset" >&2 + exit 1 +fi + +RULESET="delete rule x z handle 3 +delete chain x z +delete chain x y +delete table x" + +$NFT -f - <<< $RULESET +if [ $? -ne 0 ] ; then + echo "E: unable to load good ruleset" >&2 + exit 1 +fi -- cgit v1.2.3