-
Notifications
You must be signed in to change notification settings - Fork 62
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
Stuck #9
base: master
Are you sure you want to change the base?
Stuck #9
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.
Thanks @schenlap .
Looks good!
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.
A few details. Sorry for some comments about splitting into commits, I was reading the full diff.
@@ -35,6 +35,7 @@ | |||
#define EXIT_FAIL_OTHERTEST 0x04 | |||
|
|||
struct test tests[] = { | |||
{ "Stuck Address", test_stuck_address }, |
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.
Why don't you add Stuck Address at the end of the array instead of shift the indices of the other tests in the testmask?
o_flags &= ~O_SYNC; | ||
break; | ||
o_flags &= ~O_SYNC; | ||
break; |
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.
You are mixing changes for different purposes here. Is it your editor changing the indentation?
@@ -64,7 +64,7 @@ int compare_regions(ulv *bufa, ulv *bufb, size_t count) { | |||
return r; | |||
} | |||
|
|||
int test_stuck_address(ulv *bufa, size_t count) { | |||
int test_stuck_address(ulv *bufa, ulv *bufb, size_t count) { |
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.
bufb is not used; then add a "(void)bufb;" line to muffle the compiler.
allow masking stuck address test, add error counter