Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org>
---
 tests/shell/testcases/sets/0031set_timeout_size_0 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100755 tests/shell/testcases/sets/0031set_timeout_size_0

diff --git a/tests/shell/testcases/sets/0031set_timeout_size_0 
b/tests/shell/testcases/sets/0031set_timeout_size_0
new file mode 100755
index 000000000000..ef65972aa020
--- /dev/null
+++ b/tests/shell/testcases/sets/0031set_timeout_size_0
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+tmpfile=$(mktemp)
+if [ ! -w $tmpfile ] ; then
+       echo "Failed to create tmp file" >&2
+       exit 0
+fi
+
+trap "rm -rf $tmpfile" EXIT # cleanup if aborted
+
+echo "add table x
+add set x y { type ipv4_addr; size 128; timeout 30s; }"
+
+set -e
+$NFT -f $tmpfile
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to