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

osal Integration candidate: 2021-03-30 #927

Merged
merged 16 commits into from
Apr 1, 2021
Merged

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Mar 24, 2021

Describe the contribution

Fix #843, remove BIG/LITTLE bit order macros
Fix #846, Minor clean up and clarification in comments/naming
Fix #831, Finish os-impl-bsd-socket.c coverage testing
Fix #888, better return codes from OS_SymbolTableDump_Impl
Fix #853, remove OS_TaskRegister
Fix #934, Remove unused SCRIPT_MODE flag
Fix #929, use test function for osal_id_t

Testing performed

osal checks https://github.com/nasa/osal/pull/927/checks
bundle checks https://github.com/nasa/cFS/pull/227/checks

Expected behavior changes

PR #878

Removes SOFTWARE_BIG_BIT_ORDER and SOFTWARE_LITTLE_BIT_ORDER macros from common_types.h. These are not needed by OSAL and cannot handle all cases. Application code with endianness dependency that was relying on these symbols may break. Users should leverage code in cFE: cfe_endian.h. See nasa/cFE#1218 for more details.

PR #918

Applies minor code and documentation cleanup: white space, typos, etc.

PR #923

Adds test to get full coverage of vxworks in os-impl-bsd-socket.c resulting in full line coverage for OSAL

PR #915

Adds more descriptive return codes if OS_SymbolTableDump_Impl does not do what is expected. Adds a new error OS_ERR_OUTPUT_TOO_LARGE if the size limit was insufficient. Return OS_ERROR if an empty file was written - this likely indicates some fundamental issue with the VxWorks symbol table. Returns OS_ERR_NAME_TOO_LONG if one of the symbol names was too long. Improves unit test to check for/verify these responses.

PR #926

Removes the unneeded OS_TaskRegister() and all references to it in code, tests, and documentation. No impact to behavior, but does affect API and has depenedencies

PR #935

Removes unused -SCRIPT_MODE flag in cmake

PR #930

Remove comparison between osal_id_t and integers to use the provided comparison function, OS_ObjectIdDefined(). System builds and runs again when using a type-safe/non-integer osal_id_t type.

Additional context

Part of nasa/cFS#227

Authors

@skliper
@jphickey

jphickey and others added 6 commits March 10, 2021 17:39
The "common_types.h" file will no longer provide these.
Improve the error codes from this function.

- Introduces a new error "OS_ERR_OUTPUT_TOO_LARGE" if the size
limit was insufficient (instead of OS_SUCCESS).
- Return OS_ERROR if an empty file was written - this likely
indicates some fundamental issue with the VxWorks symbol table.
- Return OS_ERR_NAME_TOO_LONG if one of the symbol names was
too long, (instead of generic OS_ERROR).

Improve unit test to check for/verify these responses.
This function is no longer needed and has been a no-op since v5.0.0.
Fix #843, remove BIG/LITTLE bit order macros
Fix #846, Minor clean up and clarification in comments/naming
astrogeco and others added 9 commits March 24, 2021 14:47
Fix #831, Finish os-impl-bsd-socket.c coverage testing
Do not initialize or compare osal_id_t directly to integers,
use the provided comparison function.
Fix #888, better return codes from OS_SymbolTableDump_Impl
Fix #929, use test function for osal_id_t
@astrogeco astrogeco marked this pull request as ready for review April 1, 2021 05:12
@astrogeco astrogeco merged commit 65c584f into main Apr 1, 2021
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment