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

Stuck #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Stuck #9

wants to merge 3 commits into from

Conversation

schenlap
Copy link

@schenlap schenlap commented May 2, 2022

allow masking stuck address test, add error counter

Copy link
Contributor

@lucaceresoli lucaceresoli left a 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!

Copy link
Owner

@jnavila jnavila left a 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 },
Copy link
Owner

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;
Copy link
Owner

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) {
Copy link
Owner

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.

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.

3 participants