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 #1090, UT event check bounds #1091

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution

Fixes UT_CheckEventHistoryFromFunc() helper routine to read the correct number of IDs. Divide the "position" (in bytes) by the size of the event IDs to get the number of events.

Also correct bad event checks in TBL UT.

Fixes #1090

Testing performed
Build and run all unit tests

Expected behavior changes
UT_CheckEventHistoryFromFunc() works properly now.

System(s) tested on
Ubuntu 20.04

Additional context
Only Unit test is affected, no FSW

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

Divide the "position" (in bytes) by the size of the event IDs
to get the number of events.

Also correct bad event checks in TBL UT.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 12, 2021
@astrogeco
Copy link
Contributor

CCB:2021-01-13 APPROVED

Uncovered some test and event issues.
Had to write a new function that prints events in history

@astrogeco astrogeco added CCB:2021-01-13 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 13, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate January 21, 2021 16:52
@astrogeco astrogeco merged commit 0658a01 into nasa:integration-candidate Jan 21, 2021
@jphickey jphickey deleted the fix-1090-ut-eventcheck-bounds branch February 1, 2021 19:46
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect loop bounds in UT_CheckEventHistoryFromFunc
3 participants