From 612e286b9eed3f011a592a206f0128d0b04e5549 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 22 Jan 2015 17:51:48 -0800 Subject: 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 --- test/lua/pinfo.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/lua') 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) == "") test("Pinfo.columns-get-1",tostring(pinfo.columns) == "Columns") -- cgit v1.2.3