From: Florian Westphal Date: Tue, 5 Dec 2023 12:59:15 +0000 (+0100) Subject: tests: shell: add test case for sets without key X-Git-Tag: v1.1.0~175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77ba01907cb46a504ef0c0c9705308fd2883cbb4;p=thirdparty%2Fnftables.git 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 --- 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 } + } +}