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-06-29 #1098

Merged
merged 15 commits into from
Jul 7, 2021
Merged

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Jul 2, 2021

Context

Part of nasa/cFS#287

Tests

https://github.com/nasa/cfs/pull/287/checks
https://github.com/nasa/osal/pull/1098/checks

Authors

@jphickey
@skliper

Description

PR #1081

Fix #1080, add range to OS_TaskDelay checks

PR #1085

Fix #1084, Return OS_OBJECT_ID_UNDEFINED for root task ID on RTEMS

PR #1090

Fix #1082, increase UT symbol dump size limit

PR #1091

Fix #1087, do not register RTOS timer for external sync

PR #1093

Fix #1088, avoid task delete during UtPrintf

PR #1097

Fix #1096, Add osal prefix to Network API group

PR #1092

Fix #1086, increase timeout in network-api-test

jphickey and others added 14 commits June 24, 2021 14:41
To account for potential of imprecise timing/clock sampling when running
on a VM, allow for a wider range of time values to pass the test.
Ensures that OS_GetTaskId_Impl() returns OS_OBJECT_ID_UNDEFINED
if called from the root task - as this does not have an OSAL task ID.
The number of asserts being printed was still taking longer than 1000ms
on a 9600 baud serial link, so increasing the timeout allows tests to
pass.
In the osal_core_UT test, the test task was being deleted while it was
in the midst of a UtPrintf call, which left the BSP mutex in a locked
state, causing deadlock.

Using SEM_DELETE_SAFE attribute avoids task deletion for the mutex
holder, and adding a small delay to the test case makes all the
messages appear as expected (accounts for slow serial console on
test platform).
For the MCP750, the symbol table fairly large and requires a considerably
larger limit to avoid the OS_ERR_OUTPUT_TOO_LARGE limit.  This also uses
a different name, so that the user can actually see the symbol dump file
if they want (otherwise the next test overwrites the file).
Skip the registration of a timer in VxWorks when the assigned_signal
is 0 (this indicates an external sync function is used).
Fix #1082, increase UT symbol dump size limit
Fix #1087, do not register RTOS timer for external sync
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 2, 2021
**Combines:**

nasa/osal#1098

**Includes:**

nasa/osal#1081, add range to OS_TaskDelay checks

nasa/osal#1085, root task ID on RTEMS

nasa/osal#1090, increase timeout in network-api-test

nasa/osal#1091, avoid task delete during UtPrintf

nasa/osal#1093, increase UT symbol dump size limit

nasa/osal#1097, do not register RTOS timer for external sync

nasa/osal#1092, Add osal# prefix to Network API group
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 7, 2021
**Combines:**

nasa/osal#1098

**Includes:**

nasa/osal#1081, add range to OS_TaskDelay checks

nasa/osal#1085, return OS_OBJECT_ID_UNDEFINED for root task ID on RTEMS

nasa/osal#1090, increase UT symbol dump size limit

nasa/osal#1091, do not register RTOS timer for external sync

nasa/osal#1093, avoid task delete during UtPrintf

nasa/osal#1097, Add osal prefix to Network API group

nasa/osal#1092, increase timeout in network-api-test
@astrogeco astrogeco marked this pull request as ready for review July 7, 2021 04:20
@astrogeco astrogeco merged commit 5e8f40b into main Jul 7, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 7, 2021
**Combines**

nasa/cFE#1654, cfe v6.8.0-rc1+dev739
nasa/osal#1098, osal v5.1.0-rc1+dev564

**Includes**

nasa/cFE#1444, Change index type to resolve infinite loop warning
nasa/cFE#1653, Adding coverage for cfe_es_task.c
nasa/cFE#1638, Expand FS Header Functional tests.
nasa/cFE#1637, Complete coverage for cfe_es_start.c and cfe_es_syslog.c

nasa/osal#1081, add range to OS_TaskDelay checks
nasa/osal#1085, return OS_OBJECT_ID_UNDEFINED for root task ID on RTEMS
nasa/osal#1090, increase UT symbol dump size limit
nasa/osal#1091, do not register RTOS timer for external sync
nasa/osal#1093, avoid task delete during UtPrintf
nasa/osal#1097, Add osal prefix to Network API group
nasa/osal#1092, increase timeout in network-api-test

Co-authored-by: Jacob Hageman <[email protected]>
Co-authored-by: Joseph Hickey <[email protected]>
Co-authored-by: Alex Campbell <[email protected]>
Co-authored-by: Jose F Martinez Pedraza <[email protected]>
Co-authored-by: Himanshu <[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
Fix nasa#932 and nasa#1089, strncpy cleanup and UT updates for mission sizing of API_LEN and PATH_LEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment