Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix seek-ticks when already at the target event #3522

Merged
merged 1 commit into from
May 15, 2023

Conversation

dzaima
Copy link
Contributor

@dzaima dzaima commented May 14, 2023

Before this, seek-ticks would go to an incorrect tick if the current event and target tick event are the same, easiest reproducible by running seek-ticks with the same argument twice (where there isn't an event on exactly that tick).

This patch passes manual testing seeking back, forward, over events or not, and on tick numbers immediately before/after an event.

@rocallahan
Copy link
Collaborator

It should be pretty easy to write a test for this. See seek-ticks.py.

@rocallahan rocallahan merged commit 4be071a into rr-debugger:master May 15, 2023
1 check passed
@dzaima
Copy link
Contributor Author

dzaima commented May 15, 2023

Added some testing; plus fixed seek-ticks 0 being broken in my previous version (and added a trailing newline to an error message).

@dzaima dzaima deleted the seek-ticks-fix branch May 15, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants