Skip to content

Commit

Permalink
Merge pull request #714 from asgibson/fix_#704
Browse files Browse the repository at this point in the history
Fix #704, Added stub for CFE_SB_DeletePipe in ut_sb_stubs.c
  • Loading branch information
astrogeco authored Jun 2, 2020
2 parents 31659cc + b561ed8 commit 086bf1b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions fsw/cfe-core/ut-stubs/ut_sb_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,35 @@ int32 CFE_SB_CreatePipe(CFE_SB_PipeId_t *PipeIdPtr, uint16 Depth,
return status;
}

/*****************************************************************************/
/**
** \brief CFE_SB_DeletePipe stub function
**
** \par Description
** This function is used to mimic the response of the cFE SB function
** CFE_SB_DeletePipe.
**
** \par Assumptions, External Events, and Notes:
** None
**
** \returns
** Returns either a user-defined status flag or CFE_SUCCESS.
**
******************************************************************************/
int32 CFE_SB_DeletePipe(CFE_SB_PipeId_t PipeId)
{
int32 status;

status = UT_DEFAULT_IMPL(CFE_SB_DeletePipe);

if (status >= 0)
{
UT_Stub_CopyFromLocal(UT_KEY(CFE_SB_DeletePipe), &PipeId, sizeof(PipeId));
}

return status;
}

/*****************************************************************************/
/**
** \brief CFE_SB_GetPipeName stub function
Expand Down

0 comments on commit 086bf1b

Please sign in to comment.