Return OS_ERROR if OS_ObjectIdGetById
fails in vxworks OS_ShellOutputToFile_Impl
#1102
Labels
OS_ObjectIdGetById
fails in vxworks OS_ShellOutputToFile_Impl
#1102
Is your feature request related to a problem? Please describe.
Coverage test highlights somewhat unexpected behavior in the VxWorks
OS_ShellOutputToFile_impl
where it will still return success ifOS_ObjectIdGetById
doesn't return OS_SUCCESS. There isn't a real case whereOS_ObjectIdGetById
would fail that I know of, but the logic is a bit strange.osal/src/os/vxworks/src/os-impl-shell.c
Lines 79 to 102 in cb95655
Describe the solution you'd like
Return OS_ERROR if there is an error.
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: