From 77ba01907cb46a504ef0c0c9705308fd2883cbb4 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 5 Dec 2023 13:59:15 +0100 Subject: tests: shell: add test case for sets without key tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert BUG: unhandled key type 2 nft: src/intervals.c:59: setelem_expr_to_range: Assertion `0' failed. [ This bug doesn't trigger anymore due to 1949a63215b4 ("evaluate: reject set definition with no key") ] Signed-off-by: Florian Westphal --- .../testcases/bogons/nft-f/set_definition_with_no_key_assert | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert (limited to 'tests/shell/testcases') diff --git a/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert b/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert new file mode 100644 index 00000000..59ef1ab3 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert @@ -0,0 +1,12 @@ +table inet testifsets { + map map_wild { elements = { "abcdex*", + "othername", + "ppp0" } + } + map map_wild { + type ifname : verdict + flags interval + elements = { "abcdez*" : jump do_nothing, + "eth0" : jump do_nothing } + } +} -- cgit v1.2.3