Skip to content

EVS coverage test fails when CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG is set to 0xF #954

@skliper

Description

@skliper

Describe the bug
When CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG is set to 0xF there are two failures:

[ FAIL] 14.001 evs_UT.c:2675 - CFE_EVS_WriteLogDataFileCmd - Write log data - successful
[ FAIL] 14.002 evs_UT.c:2685 - CFE_EVS_SetLogModeCmd - Set logging mode - successful

To Reproduce
Steps to reproduce the behavior:

  1. Set CFE_PLATFORM_EVS_DEFAULT_TYPE_FLAG to 0xF
  2. Build unit tests, run cfe-core_evs_UT, observe failure

Expected behavior
Test should pass with debug events enabled (shouldn't care).

Code snips

/* Test successful log data file write */
UT_InitData();
UT_EVS_DoDispatchCheckEvents(&PktBuf.writelogdatacmd, sizeof(PktBuf.writelogdatacmd),
UT_TPID_CFE_EVS_CMD_WRITE_LOG_DATA_FILE_CC,
&UT_EVS_EventBuf);
UT_Report(__FILE__, __LINE__,
UT_EVS_EventBuf.EventID == 0xFFFF,
"CFE_EVS_WriteLogDataFileCmd",
"Write log data - successful");
/* Test successfully setting the logging mode */
UT_InitData();
UT_EVS_DoDispatchCheckEvents(&PktBuf.modecmd, sizeof(PktBuf.modecmd),
UT_TPID_CFE_EVS_CMD_SET_LOG_MODE_CC,
&UT_EVS_EventBuf);
UT_Report(__FILE__, __LINE__,
UT_EVS_EventBuf.EventID == 0xFFFF,
"CFE_EVS_SetLogModeCmd",
"Set logging mode - successful");

System observed on:

  • Hardware: cFS Dev Server
  • OS: Ubuntu 18.04
  • Versions: 6.8.0-rc1+dev129

Additional context
N/A

Reporter Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions