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

OS_rename unit test doesn't independently check parameter validity #1105

Closed
skliper opened this issue Jul 15, 2021 · 0 comments · Fixed by #1106 or #1113
Closed

OS_rename unit test doesn't independently check parameter validity #1105

skliper opened this issue Jul 15, 2021 · 0 comments · Fixed by #1106 or #1113
Assignees
Labels
unit-test Tickets related to the OSAL unit testing (functional and/or coverage)
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Jul 15, 2021

Is your feature request related to a problem? Please describe.
Overloaded parameter test:

UT_RETVAL(OS_rename(g_invalidPath, g_invalidPath), OS_FS_ERR_PATH_INVALID);
/*-----------------------------------------------------*/
/* #3 Path-too-long-arg */
UT_RETVAL(OS_rename(g_longPathName, g_longPathName), OS_FS_ERR_PATH_TOO_LONG);
/*-----------------------------------------------------*/
/* #4 Name-too-long-arg */
UT_RETVAL(OS_rename(g_longFileName, g_longFileName), OS_FS_ERR_NAME_TOO_LONG);

Describe the solution you'd like
Test each individually

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC

@skliper skliper added the unit-test Tickets related to the OSAL unit testing (functional and/or coverage) label Jul 15, 2021
@skliper skliper added this to the 6.0.0 milestone Jul 15, 2021
@skliper skliper self-assigned this Jul 15, 2021
skliper added a commit to skliper/osal that referenced this issue Jul 15, 2021
astrogeco added a commit that referenced this issue Jul 20, 2021
Fix #1105, Add independent OS_rename functional test parameter checks
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
1 participant