-
Notifications
You must be signed in to change notification settings - Fork 204
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
HOTFIX - no longer add unit tests from within unit tests in msg UT #840
HOTFIX - no longer add unit tests from within unit tests in msg UT #840
Conversation
Does this mean that we need to revisit this behavior in |
I just closed the issue in OSAL as "wontfix" with the recommendation to avoid the pattern of adding tests from within other tests. I'd think this is enough (just don't do it). It is a result of developing the related tests on an older OSAL, then being surprised they no longer run. Could update things in ut_assert such that this could work (or at least reject the request), but not sure if it's worth the effort. |
Can you link that osal issue? |
Just looking at the code we might want to add some comments for why some of these don't follow the semantic pattern. Since I can't tell from a quick glance why some of these use
|
Related to nasa/osal#577. Individual tests are added w/ the UT_ADD_TEST call. Some tests are grouped at a lower level (Test_MSG_CCSDSExt is a group of tests), and those functions are called directly. Same pattern is used in cFE/fsw/cfe-core/unit-test/sb_UT.c Lines 134 to 135 in a148b97
|
I opened #841 to have a targeted discussion about it. |
Update cfe to reflect HOTFIX #840
Describe the contribution
HOTFIX - unit tests added from within unit tests will not execute, replaced this pattern with direct calls to the main subtest setup routine.
Testing performed
Build unit tests and ran, all tests (including subtests) ran.
Expected behavior changes
All tests run
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC