diff options
Diffstat (limited to 'tests/shell/testcases')
-rwxr-xr-x | tests/shell/testcases/sets/errors_0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/errors_0 b/tests/shell/testcases/sets/errors_0 index a676ac73..569f4ab8 100755 --- a/tests/shell/testcases/sets/errors_0 +++ b/tests/shell/testcases/sets/errors_0 @@ -27,4 +27,15 @@ delete element x y { 1.1.1.1/24 } add element x y { 1.1.1.1/24 } delete element x y { 2.2.2.2/24 }" +$NFT -f - <<< $RULESET +if [ $? -eq 0 ] +then + exit 1 +fi + +RULESET="flush ruleset +create table inet filter +set inet filter foo {} +add element inet filter foo { foobar }" + $NFT -f - <<< $RULESET || exit 0 |