Skip to content

nimble/ll/test: Refactor ISO tests and implement test fixtures#2223

Open
MariuszSkamra wants to merge 1 commit into
apache:masterfrom
MariuszSkamra:iso_tests_refactor
Open

nimble/ll/test: Refactor ISO tests and implement test fixtures#2223
MariuszSkamra wants to merge 1 commit into
apache:masterfrom
MariuszSkamra:iso_tests_refactor

Conversation

@MariuszSkamra
Copy link
Copy Markdown
Contributor

This refactors the ISO test suite by introducing a dedicated test fixture, which ensures a clean state for every individual test case. By automating the reset process, we reduce boilerplate code and make the suite significantly easier to maintain and extend.

Additionally, the ISO test buffer size has been re-evaluated and adjusted to properly accommodate both the payload data and the required ISO headers, preventing potential buffer overflows during testing.


for (i = 0; i < sizeof os_mbuf_test_data; i++) {
os_mbuf_test_data[i] = i;
for (i = 0; i < sizeof g_test_sdu_data; i++) {
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.

sizeof(foo)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

This refactors the ISO test suite by introducing a dedicated test
fixture, which ensures a clean state for every individual test case.
By automating the reset process, we reduce boilerplate code and make
the suite significantly easier to maintain and extend.

Additionally, the ISO test buffer size has been re-evaluated and
adjusted to properly accommodate both the payload data and the
required ISO headers, preventing potential buffer overflows during
testing.
@MariuszSkamra
Copy link
Copy Markdown
Contributor Author

Rebase only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants