Skip to content

Impossible to test OS_CONSOLE_ASYNC false case #957

@skliper

Description

@skliper

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:

/*
* 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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions