Fix #501, add PIC library for ut assert #504
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the contribution
Add a position independent code (PIC) variant of the ut_assert library, which can be dynamically loaded into other applications rather than running as a standalone OSAL application. This enables loading UT assert as a CFE library.
This required moving some symbols/functions around. Mainly, the PIC library does not contain the
utbsp.c
file which has the bindings to the OSAL BSP when running as a standalone app, but everything else should be the same.Fixes #501
Testing performed
Build and execute all unit tests.
Also test linking new PIC library into a CFE loadable app and running tests.
Expected behavior changes
No impact to current unit testing which runs UT assert as a standalone app.
System(s) tested on
Ubuntu 20.04
Additional context
Some functions were moved to support the alternative linking structure but no API/functionality changes. The moved functions include the buffer length extension that were originally part of PR #492.
Third party code
If included, identify any third party code and provide text file of license
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.