Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit test status code discrepancies in osapi-mutex.h #1017

Closed
22 of 23 tasks
jphickey opened this issue May 12, 2021 · 0 comments · Fixed by #1044 or #1058
Closed
22 of 23 tasks

Unit test status code discrepancies in osapi-mutex.h #1017

jphickey opened this issue May 12, 2021 · 0 comments · Fixed by #1044 or #1058
Assignees
Labels
unit-test Tickets related to the OSAL unit testing (functional and/or coverage)
Milestone

Comments

@jphickey
Copy link
Contributor

jphickey commented May 12, 2021

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-mutex.h, function OS_MutSemCreate():

  • ONLY IN TEST: OS_ERROR
  • OK: OS_ERR_NAME_TAKEN
  • OK: OS_ERR_NAME_TOO_LONG
  • OK: OS_ERR_NO_FREE_IDS
  • OK: OS_INVALID_POINTER
  • ONLY IN DOXY: OS_SEM_FAILURE
  • OK: OS_SUCCESS

File src/os/inc/osapi-mutex.h, function OS_MutSemGive():

  • OK: OS_ERR_INVALID_ID
  • ONLY IN DOXY: OS_SEM_FAILURE
  • OK: OS_SUCCESS

File src/os/inc/osapi-mutex.h, function OS_MutSemTake():

  • OK: OS_ERR_INVALID_ID
  • ONLY IN DOXY: OS_SEM_FAILURE
  • OK: OS_SUCCESS

File src/os/inc/osapi-mutex.h, function OS_MutSemDelete():

  • OK: OS_ERR_INVALID_ID
  • ONLY IN DOXY: OS_SEM_FAILURE
  • OK: OS_SUCCESS

File src/os/inc/osapi-mutex.h, function OS_MutSemGetIdByName():

  • OK: OS_ERR_NAME_NOT_FOUND
  • OK: OS_ERR_NAME_TOO_LONG
  • OK: OS_INVALID_POINTER
  • OK: OS_SUCCESS

File src/os/inc/osapi-mutex.h, function OS_MutSemGetInfo():

  • OK: OS_ERR_INVALID_ID
  • OK: OS_INVALID_POINTER
  • OK: OS_SUCCESS

Additional context
Originally noted in #331, split into separate work items.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@skliper skliper added the unit-test Tickets related to the OSAL unit testing (functional and/or coverage) label May 12, 2021
@skliper skliper added this to the 6.0.0 milestone May 12, 2021
@jphickey jphickey self-assigned this May 21, 2021
jphickey added a commit to jphickey/osal that referenced this issue May 21, 2021
Ensures correlation between the unit-tests and documented return
values for the OSAL mutex API.
jphickey added a commit to jphickey/osal that referenced this issue May 26, 2021
Ensures correlation between the unit-tests and documented return
values for the OSAL mutex API.
astrogeco added a commit that referenced this issue Jun 1, 2021
Fix #1017, resolve discrepancies between mutex API and unit tests
pepepr08 pushed a commit to pepepr08/osal that referenced this issue Jun 9, 2021
Ensures correlation between the unit-tests and documented return
values for the OSAL mutex API.
jphickey added a commit to jphickey/osal that referenced this issue Aug 10, 2022
Fix nasa#965, remove OSAL ID from App/LibInfo struct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unit-test Tickets related to the OSAL unit testing (functional and/or coverage)
Projects
None yet
2 participants