Skip to content

Fix RA unit test endpoint initialization size - #1352

Merged
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/fix-ra-endpoint-memset-size
Jul 8, 2026
Merged

Fix RA unit test endpoint initialization size#1352
rawalexe merged 1 commit into
FreeRTOS:mainfrom
Old-Ding:codex/fix-ra-endpoint-memset-size

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Description

test_vReceiveRA_ValidICMPPrefix_IncorrectOption declares xEndPoint as NetworkEndPoint_t, but clears it with sizeof( NetworkInterface_t ).

This updates the fixture initialization to use sizeof( NetworkEndPoint_t ), matching the declared object and the surrounding RA unit tests.

Test Steps

  • Verified the diff only changes the xEndPoint memset size in test/unit-test/FreeRTOS_RA/FreeRTOS_RA_utest.c.
  • Ran git diff --check -- test/unit-test/FreeRTOS_RA/FreeRTOS_RA_utest.c.
  • Ran git ls-files --eol test/unit-test/FreeRTOS_RA/FreeRTOS_RA_utest.c.

I could not run the CMake/Ninja unit test locally because this Windows environment does not have cmake, ninja, make, gcc, clang, ruby, or bundle installed.

Duplicate check:

  • No open PR found for FreeRTOS_RA_utest.
  • No related open PR found for this NetworkEndPoint_t memset size issue.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

N/A

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rawalexe

rawalexe commented Jul 8, 2026

Copy link
Copy Markdown
Member

Good catch, thank you for the contribution.

Use the NetworkEndPoint_t size when clearing the xEndPoint test fixture in the RA unit test.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
@rawalexe
rawalexe force-pushed the codex/fix-ra-endpoint-memset-size branch from d62e42a to 2eb3bf9 Compare July 8, 2026 17:17
@rawalexe
rawalexe merged commit 06b7c9d into FreeRTOS:main Jul 8, 2026
10 checks passed
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.

5 participants