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-05-18 #1006

Merged
merged 17 commits into from
May 19, 2021
Merged

osal Integration candidate: 2021-05-18 #1006

merged 17 commits into from
May 19, 2021

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented May 12, 2021

Context

Part of nasa/cFS#259

Testing

osal checks https://github.com/nasa/osal/pull/1006/checks

cFS Bundle Checks https://github.com/nasa/cFS/pull/259/checks

Description

PR #985

Fix #983, rename hooks to handlers

CCB 2021-05-05 review item. Makes filenames better match terms used in implementation.

PR #1000

Fix #999, propagate status code in OS_rmdir

The status code from the low level implementation needs to be returned from the caller, in case it was not OS_SUCCESS.

The status returned from OS_rmdir() should now be correct if the implementation failed.

PR #1001

Fix #981, rework "unit-tests" to use macros

Adds details to log file and can be cross referenced back to documentation. Updates most of the conditions in the "unit tests" to use the support macros whenever possible. The macros display the function being called as well as the return value being checked for and enables that documented return codes are being tested. Removes repetition in the test programs.

PR #1003

Fix #1002, remove extra newlines in utassert logs

If messages (e.g. from UtPrintf, etc) already have a newline, do not add another.

Extra blank lines in test log are removed.

This should preserve extra newlines in the event that the test case was intentionally adding whitespace, by only appending one if it was not there to begin with.

PR #990

Fix #982, Add test for object id inline functions

OS_ObjectIdToInteger, OS_ObjectIdFromInteger, OS_ObjectIdEqual, OS_ObjectIdDefined now have tests.

PR #998,

Fix #994, fixed invalid inputs for OS_mkdir

Changed tests to use valid inputs for all OS_mkdir calls.

PR #812 - Community Contribution!

Improves config guide documentation issues referenced in #384, #640, #672

PR #987

Fix #986, Show CodeQL Preview

Authors

@ArielSAdamsNASA
@jphickey
@Kronos3
@zanzaben

jphickey and others added 5 commits May 6, 2021 09:17
CCB 2021-05-05 review item.  Makes filenames better match terms
used in implementation.
The status code from the low level implementation needs to
be returned from the caller, in case it was not OS_SUCCESS.
Update most of the conditions in the "unit tests" to use the
support macros whenever possible.  The macros display the
function being called as well as the return value being checked
for, and therefore this makes it so the test log file can be
cross referenced back to the documentation to ensure the
documented return codes are being tested.

As a nice side effect this also removes quite a bit of
repetition in the test programs.
If messages (e.g. from UtPrintf, etc) already have a newline,
do not add another.
@astrogeco astrogeco marked this pull request as ready for review May 19, 2021 16:46
@astrogeco astrogeco merged commit 1d183e9 into main May 19, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request May 19, 2021
Combines:

nasa/cFE#1508, cFE v6.8.0-rc1+dev580
nasa/osal#1006, osal v5.1.0-rc1+dev452

Includes:

nasa/cFE#1482, Resolve sequence count auto-increment rollover bug
nasa/cFE#1491, Correctly format code block section terminator
nasa/cFE#1530, Fix typos in developer guide

nasa/osal#985, rename hooks to handlers
nasa/osal#1000, propagate status code in OS_rmdir
nasa/osal#1001, rework "unit-tests" to use macros
nasa/osal#1003, remove extra newlines in utassert logs
nasa/osal#990, Add test for object id inline functions
nasa/osal#998, fixed invalid inputs for OS_mkdir
nasa/osal#812, Improves config guide documentation
nasa/osal#987, Show CodeQL Preview
astrogeco added a commit to nasa/cFS that referenced this pull request May 19, 2021
Combines:

nasa/cFE#1508, cFE v6.8.0-rc1+dev580
nasa/osal#1006, osal v5.1.0-rc1+dev452

Includes:

nasa/cFE#1482, Resolve sequence count auto-increment rollover bug
nasa/cFE#1491, Correctly format code block section terminator
nasa/cFE#1530, Fix typos in developer guide

nasa/osal#985, rename hooks to handlers
nasa/osal#1000, propagate status code in OS_rmdir
nasa/osal#1001, rework "unit-tests" to use macros
nasa/osal#1003, remove extra newlines in utassert logs
nasa/osal#990, Add test for object id inline functions
nasa/osal#998, fixed invalid inputs for OS_mkdir
nasa/osal#812, Improves config guide documentation
nasa/osal#987, Show CodeQL Preview

Co-Authored-By: Jake Hageman <[email protected]>
Co-Authored-By: Joseph Hickey <[email protected]>
Co-Authored-By: Ariel Adams <[email protected]>
Co-Authored-By: Alex Campbell <[email protected]>
Co-Authored-By: Tobias Nießen <[email protected]>
Co-Authored-By: Jonathan Bohren <[email protected]>
Co-Authored-By: Andrei Tumbar <[email protected]>
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment