Skip to content

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.

#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?

}

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