path: root/tests/shell
diff options
authorVarsha Rao <>2017-10-11 10:11:37 +0530
committerPablo Neira Ayuso <>2017-10-17 14:01:48 +0200
commitd11ef6ed2ac29fcd0e7ceccc72298d53f40d8c28 (patch)
treef32149f330e83efd2daaeea0f5e28b4dc9072163 /tests/shell
parentdf46c412f3ade7d2b5cc823ac307e7ac432c8873 (diff)
tests: shell: Add test case for jump chain.
This patch adds test case for checking jump to non existing chain. Signed-off-by: Varsha Rao <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell')
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/chains/0015check_jump_loop_1 b/tests/shell/testcases/chains/0015check_jump_loop_1
new file mode 100755
index 00000000..ba40ddb9
--- /dev/null
+++ b/tests/shell/testcases/chains/0015check_jump_loop_1
@@ -0,0 +1,11 @@
+set -e
+$NFT add table t
+$NFT add chain t c1
+$NFT add chain t c2
+$NFT add t c1 jump c2
+# kernel should return ENOENT
+$NFT add t c2 ip daddr vmap { 1 : jump c3 }
+echo "E: Jumped to non existing chain" >&2