summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/0014destroy_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/maps/0014destroy_0')
-rwxr-xr-xtests/shell/testcases/maps/0014destroy_010
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/shell/testcases/maps/0014destroy_0 b/tests/shell/testcases/maps/0014destroy_0
index b769276d..14c3f78a 100755
--- a/tests/shell/testcases/maps/0014destroy_0
+++ b/tests/shell/testcases/maps/0014destroy_0
@@ -1,8 +1,10 @@
-#!/bin/bash
-
-set -e
+#!/bin/sh -e
$NFT add table x
-$NFT add map x y { type ipv4_addr : ipv4_addr\; }
+# pass for non-existent map
+$NFT destroy map x y
+
+# successfully delete existing map
+$NFT add map x y '{ type ipv4_addr : ipv4_addr; }'
$NFT destroy map x y