Skip to content

More fixed_width ints and incorporating file_saving_test.c#1025

Merged
iphydf merged 1 commit intoTokTok:masterfrom
hugbubby:stdint
Jul 23, 2018
Merged

More fixed_width ints and incorporating file_saving_test.c#1025
iphydf merged 1 commit intoTokTok:masterfrom
hugbubby:stdint

Conversation

@hugbubby
Copy link
Member

@hugbubby hugbubby commented Jul 20, 2018

The file_saving_test.c was not included in the cmake list
and thus was ignored by travis and "make check". I found this
out while introducing ck_assert_msg into the integration test.

Also removed some variable width integers from encryptsave_test.c
and implemented ck_assert_msg, reorganized some loops,
and removed some longs in file_transfer_test.c.


This change is Reviewable

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's avoid sized-int in printf calls.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just get rid of the SRunner stuff. That's just old compat stuff. Now we just call the test function directly (and we shouldn't use START_TEST anymore, just declare a static function manually).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was never quite sure what SRunner does tbqh. Is my HEAD now equivalent?

@iphydf iphydf modified the milestones: v0.2.4, v0.2.x Jul 20, 2018
@hugbubby hugbubby force-pushed the stdint branch 2 times, most recently from 63f1cad to 3917c41 Compare July 20, 2018 21:58
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_known_kdf(void)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo cast.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The outer () is now redundant.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%llu is not supported on windows. Change to %lu and cast to unsigned long.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase "could".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase "wrong".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space after the cast (did you do this or did astyle?).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cast the result of the subtraction to unsigned long.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No space after cast.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra empty line.

@hugbubby hugbubby force-pushed the stdint branch 3 times, most recently from c6adc24 to 6397e17 Compare July 21, 2018 23:23
@hugbubby
Copy link
Member Author

👍?

Copy link
Member

@iphydf iphydf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm_strong: nice work, thanks! Only one comment, then it's ready to be merged.

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained


auto_tests/file_transfer_test.c, line 50 at r2 (raw file):

Previously, iphydf wrote…

The outer () is now redundant.

It's still redundant. I didn't mean the inner (), I meant the outer (). Please put the inner ones back, we currently have that as a standard. We may change that once we use a better code formatter than astyle.

@hugbubby hugbubby force-pushed the stdint branch 6 times, most recently from 7635758 to ffa038f Compare July 23, 2018 06:56
@hugbubby
Copy link
Member Author

dun

The file_saving_test.c was not included in the cmake list
and thus was ignored by travis and "make check". I found this
out while introducing ck_assert_msg into the integration test.

Furthermore, removed some variable width integers from encryptsave_test.c,
and the SRunner utilization. Implemmented ck_assert_msg, reorganized some
loops, and removed some longs in file_transfer_test.c.
@iphydf iphydf merged commit c4d5840 into TokTok:master Jul 23, 2018
@iphydf iphydf modified the milestones: v0.2.x, v0.2.5 Aug 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants