You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The unit tests and API documentation should match, where all status codes in the API documentation are tested in a unit test, and likewise all codes being tested for are documented in the API.
Describe the solution you'd like
Resolve the following mismatches:
File src/os/inc/osapi-select.h, function OS_SelectMultiple():
ONLY IN TEST: OS_SUCCESS
File src/os/inc/osapi-select.h, function OS_SelectSingle():
OK: OS_INVALID_POINTER
ONLY IN TEST: OS_SUCCESS
File src/os/inc/osapi-select.h, function OS_SelectFdZero():
OK: OS_INVALID_POINTER
ONLY IN TEST: OS_SUCCESS
File src/os/inc/osapi-select.h, function OS_SelectFdAdd():
OK: OS_INVALID_POINTER
ONLY IN TEST: OS_SUCCESS
File src/os/inc/osapi-select.h, function OS_SelectFdClear():
OK: OS_INVALID_POINTER
ONLY IN TEST: OS_SUCCESS
File src/os/inc/osapi-select.h, function OS_SelectFdIsSet():
ONLY IN DOXY: false
ONLY IN DOXY: true
Additional context
Originally noted in #331, split into separate work items.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
Ensures correlation between the test cases and documented return
values for the OSAL select API.
This substantially overhauls the select-test to get better coverage
of the various features.
jphickey
added a commit
to jphickey/osal
that referenced
this issue
Jun 1, 2021
Ensures correlation between the test cases and documented return
values for the OSAL select API.
This substantially overhauls the select-test to get better coverage
of the various features.
- Added CFE_SB_TransmitMsg, CFE_SB_TransmitBuffer,
CFE_SB_ReceiveBuffer (partial nasa#1019 fix)
- Replace CFE_SB_RcvMsg with CFE_SB_ReceiveBuffer
- Deprecated CFE_SB_SendMsg, CFE_SB_PassMsg, CFE_SB_RcvMsg
CFE_SB_ZeroCopyPass, CFE_SB_ZeroCopySend
- Use CFE_SB_Buffer_t for receiving and casting to command types
- Use CFE_MSG_CommandHeader_t and CFE_MSG_TelemetryHeader_t in
command and telemetry type definitions
- Use CFE_SB_TransmitMsg to copy the command and telemetry
into a CFE_SB_Buffer_t and send it where needed
- Avoids need to create send buffers within the app (or union
the packet types with CFE_SB_Buffer_t)
- Eliminates references to CFE_SB_CmdHdr_t and CFE_SB_TlmHdr_t
that formerly enforced alignment since these had potential
to change the actual packet sizes
- No need to cast to CFE_MSG_Message_t anywhere since it's
available in the CFE_SB_Buffer_t union
- CFE_MSG_Size_t redefined as size_t to simplify future
transition
- Replaced Syslog with SysLog for consistency
- Added Cmd to all command typedefs
- Replaced CFE_SB_CMD_HDR_SIZE and CFE_SB_TLM_HDR_SIZE
with sizeof the appropriate type
Is your feature request related to a problem? Please describe.
The unit tests and API documentation should match, where all status codes in the API documentation are tested in a unit test, and likewise all codes being tested for are documented in the API.
Describe the solution you'd like
Resolve the following mismatches:
File
src/os/inc/osapi-select.h
, functionOS_SelectMultiple()
:File
src/os/inc/osapi-select.h
, functionOS_SelectSingle()
:File
src/os/inc/osapi-select.h
, functionOS_SelectFdZero()
:File
src/os/inc/osapi-select.h
, functionOS_SelectFdAdd()
:File
src/os/inc/osapi-select.h
, functionOS_SelectFdClear()
:File
src/os/inc/osapi-select.h
, functionOS_SelectFdIsSet()
:Additional context
Originally noted in #331, split into separate work items.
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: