From 56446270f98a626a835076369d30cc33c1fc4ddf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 28 Feb 2015 23:12:12 -0800 Subject: "Break" the Acme reader so that the tests work. We don't want to have to change the pcap-ng file against which we compare, so we hardcode the year here to be the same as the year from the pcap-ng capture. Change-Id: Ibd83d06e035341f617b8285f6ba51c749c38a177 Reviewed-on: https://code.wireshark.org/review/7448 Reviewed-by: Guy Harris --- test/lua/acme_file.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/lua/acme_file.lua b/test/lua/acme_file.lua index 30c328288f..999d565ba9 100644 --- a/test/lua/acme_file.lua +++ b/test/lua/acme_file.lua @@ -413,6 +413,13 @@ function State:get_timestamp(line, file_position, seeking) end end self.tyear = curr_year + + -- XXX - but for purposes of testing, we just force the year to + -- 2014, so that we can compare the result of this code reading + -- an Acme log with the result of the pcap-ng reader reading a + -- pcap-ng file with the same packets - the time stamps in + -- pcap-ng files are times since the Epoch, so the year is known + self.tyear = 2014 end -- if this message's month is less than previous message's, then year wrapped -- cgit v1.2.3