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

Fix #1083, timer reconfig tests #1089

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

jphickey
Copy link
Contributor

Describe the contribution
The underlying OS mechanism that rejects calls to timer APIs from timer callbacks does not work on anything except POSIX. This skips these unit tests on non-POSIX platforms, and also adds documentation clearly indicating that the API must not be called from a timer context.

Fixes #1083

Testing performed
Run unit tests

Expected behavior changes
Test now passes because this check is skipped on these platforms

System(s) tested on
MCP750 / VxWorks 6.9
QEMU / RTEMS 4.11

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

The underlying OS mechanism that rejects calls to timer APIs from
timer callbacks does not work on anything except POSIX.  This skips
these unit tests on non-POSIX platforms, and also adds documentation
clearly indicating that the API must not be called from a timer
context.
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jun 25, 2021
@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Jun 30, 2021
@astrogeco
Copy link
Contributor

astrogeco commented Jun 30, 2021

CCB:2021-06-30 APPROVED

  • The tests check for illegal use of APIs

@astrogeco astrogeco changed the base branch from main to integration-candidate July 7, 2021 16:15
@jphickey
Copy link
Contributor Author

jphickey commented Jul 7, 2021

Updated comment in commit 9a46055, should be OK to merge now.

@jphickey jphickey force-pushed the fix-1083-reconfig-test branch from 9a46055 to 8615fe8 Compare July 7, 2021 16:40
@jphickey
Copy link
Contributor Author

jphickey commented Jul 7, 2021

Updated again to include why only POSIX_OS is checked (missed that the first time). Should be good now, for real.

Per review feedback, removes comment that was stale and no longer valid,
and describe why only POSIX_OS is enabled here on this check.
@jphickey jphickey force-pushed the fix-1083-reconfig-test branch from 8615fe8 to a8db3cd Compare July 7, 2021 16:43
@jphickey
Copy link
Contributor Author

jphickey commented Jul 7, 2021

Commit a8db3cd only corrects whitespace for format check

@astrogeco astrogeco merged commit 1241a1b into nasa:integration-candidate Jul 12, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 12, 2021
nasa/osal#1089, timer reconfig tests

nasa/cFE#1656, Size unit test table load buffer based on config
nasa/cFE#1657, Add SB Pipe Management Functional Tests
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 13, 2021
**Combines:**

nasa/cFE#1661, v6.8.0-rc1+dev746
nasa/osal#1100, v5.1.0-rc1+dev569

*Includes:*

nasa/osal#1089, timer reconfig tests

nasa/cFE#1656, Size unit test table load buffer based on config
nasa/cFE#1657, Add SB Pipe Management Functional Tests
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 13, 2021
**Combines:**

nasa/cFE#1661, v6.8.0-rc1+dev746
nasa/osal#1100, v5.1.0-rc1+dev569

*Includes:*

nasa/osal#1089, timer reconfig tests

nasa/cFE#1656, Size unit test table load buffer based on config
nasa/cFE#1657, Add SB Pipe Management Functional Tests
@jphickey jphickey deleted the fix-1083-reconfig-test branch August 3, 2021 15:19
@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
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
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
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timer "reconfig" tests do not work on RTEMS or VxWorks
4 participants