-
Notifications
You must be signed in to change notification settings - Fork 291
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 padding being in the wrong place in SAVED_FRIEND
struct
#313
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested it with my client. Not it works.
Reviewed 1 of 1 files at r1. Comments from Reviewable |
62caffc
to
5662fd7
Compare
Generally looks good. The reason I'm nitpicking a bit on this code is that ideally the tests are a kind of documentation, showing how things can be done. Global variables are not how things are done, despite most of our current tests saying so. Review status: 1 of 3 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. auto_tests/save_friend_test.c, line 19 at r2 (raw file):
Perhaps call this function auto_tests/save_friend_test.c, line 25 at r2 (raw file):
This is non-portable. It won't do what you expect on EBCDIC. It also doesn't matter, because nobody ever displays or otherwise interprets these, so just use auto_tests/save_friend_test.c, line 33 at r2 (raw file):
Put these two into a struct and pass a pointer to the struct as user data. auto_tests/save_friend_test.c, line 53 at r2 (raw file):
Although this technically works because the public key is a prefix of the address, it's misleading. We want the public key here. auto_tests/save_friend_test.c, line 71 at r2 (raw file):
Also technically correct, because the iteration interval happens to always be the same, but you should really call it in every iteration: auto_tests/save_friend_test.c, line 87 at r2 (raw file):
When you got your struct with the name in it, also add a bool that says something like Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. auto_tests/save_friend_test.c, line 19 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/save_friend_test.c, line 25 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/save_friend_test.c, line 33 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/save_friend_test.c, line 53 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/save_friend_test.c, line 71 at r2 (raw file): Previously, iphydf wrote…
Done. auto_tests/save_friend_test.c, line 87 at r2 (raw file): Previously, iphydf wrote…
Done. Comments from Reviewable |
21fc324
to
d3f503c
Compare
Review status: 0 of 3 files reviewed at latest revision, 6 unresolved discussions, some commit checks failed. Comments from Reviewable |
Reviewed 1 of 2 files at r2, 2 of 2 files at r3. Comments from Reviewable |
9986e65
to
9aa5ae5
Compare
Test covers saving and loading of a Tox instance with a friend added.
9aa5ae5
to
029c4fb
Compare
Reviewed 1 of 2 files at r2, 2 of 2 files at r4. Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from Reviewable |
SAVED_FRIEND
struct
This change is