Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test for scheduler app requires increase in UT_MAX_FUNC_STUBS value #1474

Closed
tandharia opened this issue Aug 6, 2024 · 1 comment
Closed
Labels

Comments

@tandharia
Copy link

Describe the bug
One of the units test for SCH_ValidateMessageData() in the scheduler app fails when the maximum number of function stubs is set to 200. The error message indicates that the buffer cannot be set due to UT_MAX_FUNC_STUBS being too low.

To Reproduce
Clone the scheduler app into the cFS repo
Run make in cFS/apps/sch

Expected behavior
The unit test for SCH_ValidateMessageData() should pass without errors

Code snips

2: [BEGIN] 61 SCH_ValidateMessageData_MessageIdUnused
2: [ABORT] Cannot set data buffer - UT_MAX_FUNC_STUBS too low?
2/4 Test #2: coverage-sch-sch_app .............Subprocess aborted***Exception:   0.24 sec

Additional context
Increasing UT_MAX_FUNC_STUBS to 300 resolved the issue, allowing the test to pass.

Reporter Info
Tvisha Andharia - GSFC 582 Intern

@tandharia
Copy link
Author

tandharia commented Aug 9, 2024

The issue has been resolved - the scheduler unit tests have been updated and no longer need a change to UT_MAX_FUNC_STUBS's value. I will be closing this issue

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 a pull request may close this issue.

2 participants