diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-26 17:44:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-26 17:44:25 +0000 |
commit | f59ea5f7690c9a01ef6f7f6508084a66c40b1dae (patch) | |
tree | 482ee255d71f113be6c62e9ff3543fd6ebb9f12a /test/lua/proto.lua | |
parent | Releasing progress-linux version 4.2.2-1.1~progress7.99u1. (diff) | |
download | wireshark-f59ea5f7690c9a01ef6f7f6508084a66c40b1dae.tar.xz wireshark-f59ea5f7690c9a01ef6f7f6508084a66c40b1dae.zip |
Merging upstream version 4.2.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/lua/proto.lua')
-rw-r--r-- | test/lua/proto.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lua/proto.lua b/test/lua/proto.lua index cc038989..b4306c69 100644 --- a/test/lua/proto.lua +++ b/test/lua/proto.lua @@ -9,8 +9,9 @@ local testlib = require("testlib") local OTHER = "other" -- expected number of runs per type +-- # of fields test doesn't work on Lua 5.4 local taptests = { - [OTHER]=48 + [OTHER]=47 } testlib.init(taptests) @@ -156,7 +157,10 @@ local myfields = { pf_trasaction_id, pf_flags, --dns.fields = myfields testlib.test(OTHER,"Proto.fields-set", pcall(setValue,dns,"fields",myfields)) testlib.test(OTHER,"Proto.fields-get", pcall(getValue,dns,"fields")) -testlib.test(OTHER,"Proto.fields-get", #dns.fields == #myfields) +-- This test doesn't work on Lua 5.4 because the # operator includes the +-- reference(s) that are the linked list of allocated and free keys, +-- starting with LUA_RIDX_LAST + 1 == 3. +-- testlib.test(OTHER,"Proto.fields-get", #dns.fields == #myfields) local pf_foo = ProtoField.uint16("myfoo.com", "Fooishly", base.DEC, rcodes, 0x000F) |