Skip to contentSkip to conversation

selftests: Completion of error handling

DISCUSSION SF Markus Elfring 2 participants 3 messages Nov 21, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

Static source code analysis points out that the checking of return values from some function calls is incomplete also in this software area.
How would you like to fix remaining open issues there?

Regards,
Markus

maintainer
#1 lore raw
Quoted 6 lines · SF Markus Elfring

Hello,

Static source code analysis points out that the checking of return values from some function calls is incomplete also in this software area.
How would you like to fix remaining open issues there?

Without understanding the details on which failures, it would be hard for me comment on how to handle them.

thanks,
--- Shuah

#2 lore raw
Quoted 6 lines
Quoted 4 lines

Static source code analysis points out that the checking of return values from some function calls is incomplete also in this software area.
How would you like to fix remaining open issues there?

Without understanding the details on which failures,

Are you using any dedicated tools for this purpose already?

Quoted 1 line

it would be hard for me comment on how to handle them.

I inspected also another specific source file for example.
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/tools/testing/selftests/timers/posix_timers.c?idª1fbe633d3034f9f838ff13387af04771e68e31#n81
https://elixir.free-electrons.com/linux/v4.14-rc8/source/tools/testing/selftests/timers/posix_timers.c#L78

This one contains some places (like in the function “check_itimer�) where the error detection and corresponding exception handling is incomplete so far.
Other source files can contain similar update candidates.

There are different design options available to improve the software situation here.
Which development directions do you prefer?

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html