diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-28 23:12:12 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-03-01 07:13:02 +0000 |
commit | 56446270f98a626a835076369d30cc33c1fc4ddf (patch) | |
tree | b31e5f826c59cc0ef29b79ff7970efebc1b82fc3 /test | |
parent | 0f3ae32290cd9d81d2c20786639532a7dcbe0be9 (diff) |
"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 <guy@alum.mit.edu>
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/acme_file.lua | 7 |
1 files changed, 7 insertions, 0 deletions
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 |