Skip to content

Commit

Permalink
Merge pull request #1463 from jphickey/fix-1417-cfe-coverage-stubs
Browse files Browse the repository at this point in the history
Fix #1417, #1387, #1393, generated coverage stubs for CFE core
  • Loading branch information
astrogeco authored May 11, 2021
2 parents 3332457 + 2d2a7f9 commit fc766c5
Show file tree
Hide file tree
Showing 45 changed files with 6,328 additions and 4,428 deletions.
20 changes: 1 addition & 19 deletions modules/core_api/fsw/inc/cfe_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include "cfe_error.h"
#include "cfe_fs_api_typedefs.h"
#include "cfe_fs_extern_typedefs.h"
#include "cfe_time_api_typedefs.h"

/** @defgroup CFEAPIFSHeader cFE File Header Management APIs
* @{
Expand Down Expand Up @@ -320,25 +321,6 @@ int32 CFE_FS_BackgroundFileDumpRequest(CFE_FS_FileWriteMetaData_t *Meta);
******************************************************************************/
bool CFE_FS_BackgroundFileDumpIsPending(const CFE_FS_FileWriteMetaData_t *Meta);

/*****************************************************************************/
/**
** \brief Execute the background file write job(s)
**
** \par Description
** Runs the state machine associated with background file write requests
**
** \par Assumptions, External Events, and Notes:
** This should only be invoked as a background job from the ES background task,
** it should not be invoked directly.
**
** \param[in] ElapsedTime The amount of time passed since last invocation (ms)
** \param[in] Arg Not used/ignored
**
** \return true if jobs are pending, false if idle
**
******************************************************************************/
bool CFE_FS_RunBackgroundFileDump(uint32 ElapsedTime, void *Arg);

/**@}*/

#endif /* CFE_FS_H */
24 changes: 16 additions & 8 deletions modules/core_api/ut-stubs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,22 @@ include_directories(${osal_MISSION_DIR}/ut_assert/inc)
# Create the generic stubs library
#
add_library(ut_core_api_stubs STATIC
src/ut_es_stubs.c
src/ut_evs_stubs.c
src/ut_msg_stubs.c
src/ut_resourceid_stubs.c
src/ut_sb_stubs.c
src/ut_tbl_stubs.c
src/ut_time_stubs.c
src/ut_fs_stubs.c
src/cfe_es_handlers.c
src/cfe_es_stubs.c
src/cfe_evs_handlers.c
src/cfe_evs_stubs.c
src/cfe_fs_handlers.c
src/cfe_fs_stubs.c
src/cfe_msg_handlers.c
src/cfe_msg_stubs.c
src/cfe_resourceid_handlers.c
src/cfe_resourceid_stubs.c
src/cfe_sb_handlers.c
src/cfe_sb_stubs.c
src/cfe_tbl_handlers.c
src/cfe_tbl_stubs.c
src/cfe_time_handlers.c
src/cfe_time_stubs.c
)

# Define _CFE_CORE_ within stubs to also reveal internal APIs in header
Expand Down
Loading

0 comments on commit fc766c5

Please sign in to comment.