summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0004busy_1
blob: cc9a0dad6c676d737e66cb8368d3fb33411dbd79 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

$NFT add table t
$NFT add chain t c1
$NFT add chain t c2
$NFT add rule t c1 jump c2
# kernel should return EBUSY
$NFT delete chain t c2 2>/dev/null
echo "E: deleted a busy chain?" >&2