nasa / osal

The Core Flight System (cFS) Operating System Abstraction Layer (OSAL)
Apache License 2.0
557 stars 218 forks source link

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

Closed tandharia closed 3 months ago

tandharia commented 3 months ago

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 commented 3 months ago

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