From 91aacd899878e462beebf819498a70dc6e13ee0e Mon Sep 17 00:00:00 2001 From: Alan Gibson Date: Thu, 21 May 2020 15:48:59 -0400 Subject: [PATCH 1/2] Fix #704. Added stub for CFE_SB_DeletePipe in ut_sb_stubs.c --- fsw/cfe-core/ut-stubs/ut_sb_stubs.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c index c77d4324a..3586d47b0 100644 --- a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c +++ b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c @@ -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 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 From b561ed8db3de36d0dcab51ff72aeb84d47c8e569 Mon Sep 17 00:00:00 2001 From: Alan Gibson Date: Wed, 27 May 2020 11:21:07 -0400 Subject: [PATCH 2/2] Updated return comment for CFE_SB_DeletePipe to include user defined flag as a possible return type. --- fsw/cfe-core/ut-stubs/ut_sb_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c index 3586d47b0..1de4d0889 100644 --- a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c +++ b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c @@ -170,7 +170,7 @@ int32 CFE_SB_CreatePipe(CFE_SB_PipeId_t *PipeIdPtr, uint16 Depth, ** None ** ** \returns -** Returns CFE_SUCCESS. +** Returns either a user-defined status flag or CFE_SUCCESS. ** ******************************************************************************/ int32 CFE_SB_DeletePipe(CFE_SB_PipeId_t PipeId)