Skip to content

Stuck#9

Open
schenlap wants to merge 3 commits into
jnavila:masterfrom
schenlap:stuck
Open

Stuck#9
schenlap wants to merge 3 commits into
jnavila:masterfrom
schenlap:stuck

Conversation

@schenlap

@schenlap schenlap commented May 2, 2022

Copy link
Copy Markdown

allow masking stuck address test, add error counter

@lucaceresoli lucaceresoli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @schenlap .
Looks good!

@jnavila jnavila left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread memtester.c
#define EXIT_FAIL_OTHERTEST 0x04

struct test tests[] = {
{ "Stuck Address", test_stuck_address },

Copy link
Copy Markdown
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?

Comment thread memtester.c
o_flags &= ~O_SYNC;
break;
o_flags &= ~O_SYNC;
break;

Copy link
Copy Markdown
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?

Comment thread tests.c
}

int test_stuck_address(ulv *bufa, size_t count) {
int test_stuck_address(ulv *bufa, ulv *bufb, size_t count) {

Copy link
Copy Markdown
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