Skip to content

Commit

Permalink
Merge pull request #267 from skliper/fix215-improve_coverage
Browse files Browse the repository at this point in the history
Fix #194 #108 #215 #27 #266, Coverage improvements
  • Loading branch information
astrogeco authored Jun 22, 2022
2 parents 1ba450b + 022c496 commit bff67f8
Show file tree
Hide file tree
Showing 16 changed files with 320 additions and 2,149 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/unit-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ jobs:
unit-test-coverage:
name: Run unit test and coverage
uses: nasa/cFS/.github/workflows/unit-test-coverage.yml@main
with:
max-missed-branches: 8
max-missed-lines: 2
2 changes: 1 addition & 1 deletion fsw/src/cf_clist.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void CF_CList_Remove(CF_CListNode_t **head, CF_CListNode_t *node)
CF_Assert(node);
CF_Assert(*head);

if ((node->next == node) && (node->prev == node))
if (node->next == node)
{
/* only node in the list, so this one is easy */
CF_Assert(node == *head); /* sanity check */
Expand Down
1 change: 1 addition & 0 deletions fsw/src/cf_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ int CF_WriteHistoryEntryToFile(osal_id_t fd, const CF_History_t *h)
snprintf(linebuf, sizeof(linebuf), "SRC: %s\t", h->fnames.src_filename);
break;
case 2:
default:
snprintf(linebuf, sizeof(linebuf), "DST: %s\n", h->fnames.dst_filename);
break;
}
Expand Down
1 change: 0 additions & 1 deletion unit-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
add_cfe_coverage_stubs(cf_internal
utilities/cf_test_utils.c
utilities/cf_test_alt_handler.c
utilities/ut_utils_cfe_hooks.c

stubs/cf_app_global.c
stubs/cf_app_stubs.c
Expand Down
Loading

0 comments on commit bff67f8

Please sign in to comment.