diff options
author | Tom Cherry <tomcherry@google.com> | 2020-06-01 13:43:50 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2020-06-01 14:44:56 -0700 |
commit | 90e9ce0c28f054f9b17ae2acb382939385fc77ed (patch) | |
tree | b099e8942724753d0264fa9e6db068f4b1f08250 /trusty/coverage/coverage_test.cpp | |
parent | 609630e7ba9e5458bd1968a6e9d5121fa5a2c34f (diff) |
logd: fix bug in FlushTo when requesting exact sequence number
SimpleLogBuffer::FlushTo() attempts to find the iterator matching a
given sequence number, but the logic is wrong and will always skip one
element forward. This change fixes this and adds a test for the
situation.
This likely contributed to some test instability in the past, but was
identified because subsequent changes that track the start value
closer exacerbated this issue.
Test: existing and new unit tests
Change-Id: Iba2e654e94234693dba20d4747a60bc79d195673
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions