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 #1763, last char truncated in coverage log output #1764

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Aug 4, 2021

Describe the contribution
The "MessageCheck_Impl" routine used for printf/syslog checks was incorrectly truncating the last character of the log message.

Fixes #1763

Testing performed
Run all coverage tests, confirm print logs now contain the full string.

Expected behavior changes
Last char is no longer truncated in log

System(s) tested on
Ubuntu

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

The "MessageCheck_Impl" routine used for printf/syslog checks
was incorrectly truncating the last character of the log message.
@jphickey jphickey force-pushed the fix-1763-covtest-printf-log branch from 0710251 to e07f222 Compare August 4, 2021 22:17
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Aug 4, 2021
@jphickey
Copy link
Contributor Author

jphickey commented Aug 4, 2021

For comparison, here are the same two lines from the issue ticket now:

[ PASS] 02.006 es_UT.c:724 - Printf generated: '%s: Startup Sync failed - Applications may not have all started' (1) >  (0)
[ PASS] 02.007 es_UT.c:725 - Printf generated: '%s: Startup Sync failed - Applications may not have all initialized' (1) >  (0)

@skliper skliper added this to the 7.0.0 milestone Aug 5, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate August 9, 2021 21:38
@astrogeco astrogeco merged commit 84bb9d7 into nasa:integration-candidate Aug 9, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Aug 9, 2021
-nasa/cFE#1764, last char truncated in coverage log output
astrogeco added a commit to nasa/cFS that referenced this pull request Aug 11, 2021
**Combines**

- nasa/cFE#1772, v6.8.0-rc1+dev844
- nasa/osal#1127, v5.1.0-rc1+dev590

**Includes**

*cFE*

- nasa/cFE#1737, Move global count into test global struct.
- nasa/cFE#1722, Add ES application control API functional tests
- nasa/cFE#1743, Update coverage test to use UtAssert macros
- nasa/cFE#1734, Add table api functional tests
- nasa/cFE#1753, Add Generic Counter API test
- nasa/cFE#1766, finish ES misc API functional test
- nasa/cFE#1764, last char truncated in coverage log output
- nasa/cFE#1728, Mistakes in some copyright headers
- nasa/cFE#1767, Add misc time api functional test cFE
- nasa/cFE#1749, Add Functional Test for EVS Reset Filters API
- nasa/cFE#1781, RTEMS CFE_FT_Global build failure
- nasa/cFE#1796, replace VOIDCALL assert macro

*osal*

- nasa/osal#1117, Add absolute branch coverage check
astrogeco added a commit to nasa/cFS that referenced this pull request Aug 11, 2021
**Combines**

- nasa/cFE#1772, v6.8.0-rc1+dev844
- nasa/osal#1127, v5.1.0-rc1+dev590

**Includes**

*cFE*

- nasa/cFE#1737, Move global count into test global struct.
- nasa/cFE#1722, Add ES application control API functional tests
- nasa/cFE#1743, Update coverage test to use UtAssert macros
- nasa/cFE#1734, Add table api functional tests
- nasa/cFE#1753, Add Generic Counter API test
- nasa/cFE#1766, finish ES misc API functional test
- nasa/cFE#1764, last char truncated in coverage log output
- nasa/cFE#1728, Mistakes in some copyright headers
- nasa/cFE#1767, Add misc time api functional test cFE
- nasa/cFE#1749, Add Functional Test for EVS Reset Filters API
- nasa/cFE#1781, RTEMS CFE_FT_Global build failure
- nasa/cFE#1796, replace VOIDCALL assert macro

*osal*

- nasa/osal#1117, Add absolute branch coverage check

Co-authored-by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored-by: Alex Campbell <zanzaben@users.noreply.github.com>
Co-authored-by: Niall Mullane <nmullane@users.noreply.github.com>
Co-authored-by: Paul <pavll@users.noreply.github.com>
@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Aug 11, 2021
@astrogeco
Copy link
Contributor

CCB:2021-08-11 APPROVED

@jphickey jphickey deleted the fix-1763-covtest-printf-log branch August 11, 2021 19:06
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.

Printf test logs missing last character
3 participants