diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-22 17:51:48 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-01-23 01:52:24 +0000 |
commit | 612e286b9eed3f011a592a206f0128d0b04e5549 (patch) | |
tree | 16d24fdafe6d149a7703345d321df5f98c534181 /test/lua | |
parent | 5b55288ae3353ff6ad8aa0a14a709299844aaaca (diff) |
Fix test script to test Lua Pinfo, and fix problem it found.
The test script was running lua/nstime.lua rather than lua/pinfo.lua for
the Pinfo test, and the Pinfo test was testing the ipproto property for
a Pinfo, but that was removed.
Change-Id: Iccdccd265dd550e41640af3acd607362f1f2f02e
Reviewed-on: https://code.wireshark.org/review/6747
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/pinfo.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/lua/pinfo.lua b/test/lua/pinfo.lua index f4b922db29..199e9bcaa5 100644 --- a/test/lua/pinfo.lua +++ b/test/lua/pinfo.lua @@ -118,7 +118,6 @@ silently accept being set (though nothing happens) Blech!! test("Pinfo.lo-set-1",not pcall(setPinfo,pinfo,"lo",0)) test("Pinfo.hi-set-1",not pcall(setPinfo,pinfo,"hi",0)) test("Pinfo.port_type-set-1",not pcall(setPinfo,pinfo,"port_type",0)) - test("Pinfo.ipproto-set-1",not pcall(setPinfo,pinfo,"ipproto",0)) test("Pinfo.match-set-1",not pcall(setPinfo,pinfo,"match",0)) test("Pinfo.curr_proto-set-1",not pcall(setPinfo,pinfo,"curr_proto",0)) test("Pinfo.columns-set-1",not pcall(setPinfo,pinfo,"columns",0)) @@ -180,7 +179,6 @@ again, these *should* pass, but Pinfo silently allows it! test("Pinfo.hi-get-1",tostring(pinfo.hi) == dstip) test("Pinfo.hi-get-2",typeof(pinfo.hi) == "Address") test("Pinfo.port_type-get-1",pinfo.port_type == 3) - test("Pinfo.ipproto-get-1",pinfo.ipproto == 17) test("Pinfo.match-get-1",pinfo.match == 0) test("Pinfo.curr_proto-get-1",tostring(pinfo.curr_proto) == "<Missing Protocol Name>") test("Pinfo.columns-get-1",tostring(pinfo.columns) == "Columns") |