-
Notifications
You must be signed in to change notification settings - Fork 797
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
Add missing iterations in tests #786
Conversation
Hi @sosthene-nitrokey, thanks for creating an issue. I'm trying to dig into the bug, but I'm not sure this test was actually missing files? It's a bit convoluted, but the lfs_dir_reads at the beginning of the loop should be skipping the Lines 790 to 814 in 6a53d76
Correct me if I'm wrong. I'll look into the error it's throwing. |
Ah, the issue is it should be |
Well, no, the The I think this needs its own test. |
I went ahead and created #805, thanks for creating a PR! |
Thank you for the investigation and the fix! Feel free to close this PR as your PR also adds tests that cover this. This PR was meant mostly as an example reproducer, and not really with the goal to be merged. |
The tests don't actually test every file.
The iteration skips the two
.
and..
directories, which means that the last two files were not read. This PR fixes that. This seems to reach an edge case reported in #785.As can be seen, the tests fail at a call to
lfs_dir_seek
, when they shouldn't.