Skip to content

unittests: convert util-spm tests to FAIL/PASS API#15371

Closed
0x-0ddc0de wants to merge 1 commit into
OISF:mainfrom
0x-0ddc0de:redmine-6334-v4
Closed

unittests: convert util-spm tests to FAIL/PASS API#15371
0x-0ddc0de wants to merge 1 commit into
OISF:mainfrom
0x-0ddc0de:redmine-6334-v4

Conversation

@0x-0ddc0de

Copy link
Copy Markdown

Update to address comments on

Changes since PR v3:

  • refactored SpmTestSearch to use non-branching FAIL_IF
  • removed printf from fail block in SpmSearchTest02

Issue: 6334

@inashivb inashivb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your work! This is looking good. One minor comment.

Comment thread src/util-spm.c
printf("Error1 searching for %s in text %s\n", needle[i], text[i][j]);
return 0;
}
FAIL_IF(found == 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: all these FAIL_IF(blah == 0) could be replaced with FAIL_IF_NOT(blah)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

done

@github-actions

Copy link
Copy Markdown

NOTE: This PR may contain new authors.

@catenacyber

Copy link
Copy Markdown
Contributor

Replaced by #15382

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.

3 participants