Skip to content

Conversation

@Promisecharles
Copy link

Task #6322

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/6322

Describe changes:

  • convert unittests to fail/pass API

Provide values to any of the below to override the defaults.

  • To use a Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=

@jasonish jasonish added the outreachy Contributions made by Outreachy applicants label Oct 27, 2025
@github-actions
Copy link

NOTE: This PR may contain new authors.

static void *PoolTestAlloc(void)
{
void *ptr = SCMalloc(10);
if (unlikely(ptr == NULL))
Copy link
Contributor

Choose a reason for hiding this comment

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

We do this because of cocci :-/

Copy link
Contributor

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

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

Could you improve the commit message ?
Have pool in the title and reference a redmine ticket ?

Also, we will need to check if cocci is happy with the PoolTestAlloc change, or just discard it

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.22%. Comparing base (0990c9d) to head (7e35354).
⚠️ Report is 64 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14169      +/-   ##
==========================================
- Coverage   84.46%   84.22%   -0.25%     
==========================================
  Files        1013     1013              
  Lines      271932   262095    -9837     
==========================================
- Hits       229694   220738    -8956     
+ Misses      42238    41357     -881     
Flag Coverage Δ
fuzzcorpus 63.37% <ø> (-0.04%) ⬇️
livemode 18.73% <ø> (-0.68%) ⬇️
pcap 44.60% <ø> (-0.25%) ⬇️
suricata-verify 64.85% <ø> (-0.43%) ⬇️
unittests 59.22% <100.00%> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jufajardini
Copy link
Contributor

Hello, considering this was a submission related to the Outreachy Contribution round and it's been in the Changes Requested state for a week without new interactions, I'm closing it as stale. If you are still working on this task, please open a new PR with the incorporated feedback. ;)

@jufajardini jufajardini closed this Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outreachy Contributions made by Outreachy applicants

Development

Successfully merging this pull request may close these issues.

4 participants