Skip to content

Fix #467, #1636 Complete coverage for cfe_es_start.c and cfe_es_syslog.c#1637

Merged
astrogeco merged 3 commits intonasa:integration-candidatefrom
pepepr08:fix467-es-start-syslog
Jul 1, 2021
Merged

Fix #467, #1636 Complete coverage for cfe_es_start.c and cfe_es_syslog.c#1637
astrogeco merged 3 commits intonasa:integration-candidatefrom
pepepr08:fix467-es-start-syslog

Conversation

@pepepr08
Copy link
Contributor

Describe the contribution
Completed code coverage for cfe_es_start.c and cfe_es_syslog.c with the following changes:

Fixes #467 The following tests were added:

  • CFE_ES_Main with a ES Perf Data mutex creation failure
  • CFE_ES_CreateObjects with unknown object type
  • CFE_ES_SysLogReadData when calculated blocksize is 0

Fixes #1636 removed function CFE_ES_SysLog_snprintf

Testing performed
Manually ran unit tests for ES: $ make -C build/native/default_cpu1/es test
Verified 100% coverage on files with gcov cfe_es_syslog.c.gcno and gcov cfe_es_start.c.gcno

Expected behavior changes
Increased overall code coverage

System(s) tested on

  • Ubuntu 18.04 VM

Additional context

Contributor Info - All information REQUIRED for consideration of pull request
Jose F. Martinez Pedraza/NASA GSFC

@pepepr08 pepepr08 force-pushed the fix467-es-start-syslog branch from 2d73c9b to f96f9db Compare June 23, 2021 19:40
@pepepr08 pepepr08 force-pushed the fix467-es-start-syslog branch from f96f9db to 46fedff Compare June 23, 2021 19:41
@pepepr08 pepepr08 added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jun 23, 2021
@zanzaben zanzaben requested a review from skliper June 24, 2021 19:09
@astrogeco
Copy link
Contributor

DEV:2021-06-22, @skliper do we want to merge this even though it modifies fsw?

@skliper
Copy link
Contributor

skliper commented Jun 25, 2021

@astrogeco - Yes, it was dead code so removal is appropriate in prep for release.

@skliper skliper added this to the 7.0.0 milestone Jun 28, 2021
@astrogeco astrogeco changed the title Complete coverage for cfe_es_start.c and cfe_es_syslog.c Fix #467, #1636 Complete coverage for cfe_es_start.c and cfe_es_syslog.c Jun 28, 2021
@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 Jun 30, 2021
@astrogeco
Copy link
Contributor

astrogeco commented Jun 30, 2021

CCB:2021-06-30 APPROVED with CHANGES

  • use new UTAssert call

@astrogeco astrogeco changed the base branch from main to integration-candidate July 1, 2021 19:04
@astrogeco astrogeco merged commit 176e1ab into nasa:integration-candidate Jul 1, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 2, 2021
nasa/cFE#1637, Complete coverage for cfe_es_start.c and cfe_es_syslog.c
astrogeco added a commit to nasa/cFS that referenced this pull request Jul 7, 2021
**Combines**

nasa/cFE#1654, cfe v6.8.0-rc1+dev739
nasa/osal#1098, osal v5.1.0-rc1+dev564

**Includes**

nasa/cFE#1444, Change index type to resolve infinite loop warning
nasa/cFE#1653, Adding coverage for cfe_es_task.c
nasa/cFE#1638, Expand FS Header Functional tests.
nasa/cFE#1637, Complete coverage for cfe_es_start.c and cfe_es_syslog.c

nasa/osal#1081, add range to OS_TaskDelay checks
nasa/osal#1085, return OS_OBJECT_ID_UNDEFINED for root task ID on RTEMS
nasa/osal#1090, increase UT symbol dump size limit
nasa/osal#1091, do not register RTOS timer for external sync
nasa/osal#1093, avoid task delete during UtPrintf
nasa/osal#1097, Add osal prefix to Network API group
nasa/osal#1092, increase timeout in network-api-test

Co-authored-by: Jacob Hageman <[email protected]>
Co-authored-by: Joseph Hickey <[email protected]>
Co-authored-by: Alex Campbell <[email protected]>
Co-authored-by: Jose F Martinez Pedraza <[email protected]>
Co-authored-by: Himanshu <[email protected]>
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.

Remove unused function CFE_ES_SysLog_snprintf in cfe_es_syslog.c Incomplete coverage test for cfe_es_start.c and cfe_es_syslog.c

4 participants