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 #944, add OS_API_Teardown #948

Merged
merged 2 commits into from
Apr 11, 2021

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Apr 7, 2021

Describe the contribution
This cleans up all OSAL resources as best as possible, ideally leaving the system in a state where OS_API_Init() may be invoked again.

Fixes #944
Fixes #197

Testing performed
Build and run all unit tests, confirm correct behavior
Test in conjunction with fix for #197, confirm test can be run multiple times on VxWorks without reboot

Expected behavior changes
Adds OS_API_Teardown API to complement OS_API_Init

System(s) tested on
Ubuntu 20.04 (native)
MCP750 vxworks 6.9

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

This cleans up all OSAL resources as best as possible, ideally leaving
the system in a state where OS_API_Init() may be invoked again.
@jphickey jphickey force-pushed the fix-944-osapi-teardown branch from 35e7b04 to 7101da0 Compare April 7, 2021 14:34
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Apr 7, 2021
Invoke OS_API_Teardown to reset state for next test
@jphickey jphickey force-pushed the fix-944-osapi-teardown branch from b5f4071 to ef34cf4 Compare April 7, 2021 14:54
@jphickey
Copy link
Contributor Author

jphickey commented Apr 7, 2021

Updated, also including the fix for issue #197 in this PR (second commit)

@astrogeco
Copy link
Contributor

CCB:2021-04-07 APPROVED

@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 Apr 7, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate April 11, 2021 18:36
@astrogeco astrogeco merged commit faf8792 into nasa:integration-candidate Apr 11, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 12, 2021
Combines

nasa/osal#956
nasa/cFE#1295

Including:

nasa/osal#941 - Allow OSAL re-initialization
nasa/osal#941 - Combine initialized and shutdown flags into one
nasa/osal#948 - Add OS_API_Teardown
nasa/osal#948 - Black Box Unit Tests Do Not Ensure Resources Are Cleaned Up Between Tests
nasa/osal#940 - Rework shell test

nasa/cFE#1276 - Use events for CFE test asserts
@jphickey jphickey deleted the fix-944-osapi-teardown branch April 28, 2021 18:58
@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
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
3 participants