-
Notifications
You must be signed in to change notification settings - Fork 245
Description
Is your feature request related to a problem? Please describe.
Now that OS_CONSOLE_ASYNC is defined locally, it's impossible to functionally test false case or get full branch coverage on OS_ConsoleCreate_Impl without modifying the code under test:
osal/src/os/vxworks/src/os-impl-console.c
Lines 41 to 48 in ba0ac40
| /* | |
| * By default the console output is always asynchronous | |
| * (equivalent to "OS_UTILITY_TASK_ON" being set) | |
| * | |
| * This option was removed from osconfig.h and now is | |
| * assumed to always be on. | |
| */ | |
| #define OS_CONSOLE_ASYNC true |
osal/src/os/vxworks/src/os-impl-console.c
Lines 146 to 148 in ba0ac40
| local->is_async = OS_CONSOLE_ASYNC; | |
| if (local->is_async) |
Describe the solution you'd like
Either need to be able to exercise this option or remove it.
Describe alternatives you've considered
None
Additional context
Prevents full branch coverage
Requester Info
Jacob Hageman - NASA/GSFC