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 #1036, Clear task data in EarlyInit and standardize name #1124

Merged
merged 2 commits into from
Jan 27, 2021

Conversation

skliper
Copy link
Contributor

@skliper skliper commented Jan 25, 2021

Describe the contribution
Fix #1036 - explicity memset the task data to zero at the start of EarlyInit. Also standardizes the global typdef/variable names.

Might need a rebase based on the name changes.

Testing performed
Build and run unit tests, passed.

Expected behavior changes
None.

System(s) tested on

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: Bundle main + this commit

Additional context
TBL global depends on CFE_TBL_Global.TableTaskAppId being set, which doesn't happen until the app starts (in CFE_TBL_InitData), so replaced where CFE_TBL_EarlyInit was being called to initialize the data with the test initialization function Test_CFE_TBL_ApiInit. In the future these tests could be cleaned up by calling the initialization before each test, and ensuring there are no test configuration dependencies across tests.

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC

@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 25, 2021
cFE Integration candidate: 2021-01-19
@skliper skliper force-pushed the fix1036-clear_globals branch from cb84069 to 291fcdb Compare January 27, 2021 15:01
@astrogeco astrogeco added CCB:2021-01-27 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 27, 2021
@skliper skliper force-pushed the fix1036-clear_globals branch from 291fcdb to cf198f6 Compare January 27, 2021 15:57
@skliper
Copy link
Contributor Author

skliper commented Jan 27, 2021

Rebased and updated SB global name (finished work).

@astrogeco
Copy link
Contributor

CCB:2021-01-27 APPROVED

  • There were two services that did the memset zero, this standardizes the practice
  • Makes global variable names consistent as: SERVICENAME_Global
  • Simplifies initialization
  • tbl_UT.c needs cleanup since they depend on the order of how things are set up

@astrogeco astrogeco changed the base branch from main to integration-candidate January 27, 2021 21:39
@astrogeco astrogeco merged commit 62b453d into nasa:integration-candidate Jan 27, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 27, 2021
astrogeco added a commit that referenced this pull request Feb 8, 2021
Fix #1036, Clear task data in EarlyInit and standardize name #1124
astrogeco added a commit to nasa/cFS that referenced this pull request Feb 8, 2021
jphickey pushed a commit that referenced this pull request Feb 8, 2021
Fix #1036, Clear task data in EarlyInit and standardize name #1124
@skliper skliper deleted the fix1036-clear_globals branch April 1, 2021 20:05
@skliper skliper added this to the 7.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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clear BSS on App Restart
2 participants