Skip to content

tests: convert DecodeEthernetTest01 to new FAIL_IF/PASS API#14818

Closed
NicksonKihugu wants to merge 1 commit intoOISF:mainfrom
NicksonKihugu:convert-decode-ethernet-tests-clean
Closed

tests: convert DecodeEthernetTest01 to new FAIL_IF/PASS API#14818
NicksonKihugu wants to merge 1 commit intoOISF:mainfrom
NicksonKihugu:convert-decode-ethernet-tests-clean

Conversation

@NicksonKihugu
Copy link

This PR converts the DecodeEthernetTest01 unit test in src/decode-ethernet.c to the newer FAIL_IF / PASS APIThis PR converts the DecodeEthernetTest01 unit test in src/decode-ethernet.c to the newer FAIL_IF / PASS API

@NicksonKihugu NicksonKihugu force-pushed the convert-decode-ethernet-tests-clean branch from 8bab2a5 to ae5f310 Compare February 16, 2026 06:57
@github-actions
Copy link

NOTE: This PR may contain new authors.

Copy link
Member

@victorjulien victorjulien left a comment

Choose a reason for hiding this comment

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

This needs more serious attention to be able to continue.

Packet *p = PacketGetFromAlloc();
if (unlikely(p == NULL))
return 0;
FAIL_IF(unlikely(p == NULL))
Copy link
Member

Choose a reason for hiding this comment

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

FAIL_IF_NULL(p)

Copy link
Member

Choose a reason for hiding this comment

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

Also, this is missing a semicolon. What this shows is that this code was not even compiled before submitting a PR, which is not acceptable esp since this is the 2nd PR.

@victorjulien
Copy link
Member

Additionally, we have a PR template that needs to be filled in when creating a PR.

Please study https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html

@NicksonKihugu NicksonKihugu force-pushed the convert-decode-ethernet-tests-clean branch from ae5f310 to 4a48516 Compare February 16, 2026 17:14
@NicksonKihugu NicksonKihugu force-pushed the convert-decode-ethernet-tests-clean branch from 4a48516 to b439b56 Compare February 16, 2026 18:19
@victorjulien
Copy link
Member

@NicksonKihugu the most important part of our contribution process is communication. Ignoring feedback and just force pushing is not the way forward.

@NicksonKihugu
Copy link
Author

Thank you for the feedback.
I apologize if it seemed like I ignored it, that wasn’t my intention.
I fixed the missing semicolon, recompiled locally (make clean, ./configure, make, make check), and ran clang-format-14 before force-pushing.
I should have explained the changes before pushing, thank you for pointing that out. Please let me know if anything still needs adjustment.

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.

2 participants