From: Varsha Rao <rvarsha016@xxxxxxxxx> This patch adds tests for chain rename use case. Signed-off-by: Varsha Rao <rvarsha016@xxxxxxxxx> --- tests/shell/testcases/chains/0013rename_1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/shell/testcases/chains/0013rename_1 diff --git a/tests/shell/testcases/chains/0013rename_1 b/tests/shell/testcases/chains/0013rename_1 new file mode 100755 index 0000000..a69d855 --- /dev/null +++ b/tests/shell/testcases/chains/0013rename_1 @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +$NFT add table t +$NFT add chain t c1 +# kernel should return EEXIST +$NFT rename chain t c1 c2 2>/dev/null +echo "E: Renamed chain with non existing chain" >&2 -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html